mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #35232 -- Cached model's Options.verbose_name_raw.
This commit is contained in:
parent
28a3fbe004
commit
f25d84f61a
3 changed files with 18 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue