1
0
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:
Adam Johnson
2024-02-18 21:49:25 +00:00
committed by Mariusz Felisiak
parent 28a3fbe004
commit f25d84f61a
3 changed files with 18 additions and 1 deletions

View File

@@ -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: