mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Fixed #33985 -- Used app_config.verbose_name in ContentType.__str__().
This commit is contained in:
committed by
Mariusz Felisiak
parent
18473004af
commit
a52bdea5a2
@@ -162,7 +162,10 @@ class ContentType(models.Model):
|
||||
model = self.model_class()
|
||||
if not model:
|
||||
return self.model
|
||||
return "%s | %s" % (model._meta.app_label, model._meta.verbose_name)
|
||||
return "%s | %s" % (
|
||||
model._meta.app_config.verbose_name,
|
||||
model._meta.verbose_name,
|
||||
)
|
||||
|
||||
def model_class(self):
|
||||
"""Return the model class for this type of content."""
|
||||
|
||||
Reference in New Issue
Block a user