mirror of
https://github.com/django/django.git
synced 2025-10-29 08:36:09 +00:00
Fixed #35232 -- Cached model's Options.verbose_name_raw.
This commit is contained in:
committed by
Mariusz Felisiak
parent
28a3fbe004
commit
f25d84f61a
@@ -1,6 +1,7 @@
|
||||
from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
class Relation(models.Model):
|
||||
@@ -124,6 +125,9 @@ class Person(BasePerson):
|
||||
# GR fields
|
||||
generic_relation_concrete = GenericRelation(Relation)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("Person")
|
||||
|
||||
|
||||
class ProxyPerson(Person):
|
||||
class Meta:
|
||||
|
||||
Reference in New Issue
Block a user