mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +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
@@ -20,6 +20,6 @@ class ContentTypeTests(TestCase):
|
||||
def test_verbose_name(self):
|
||||
company_type = ContentType.objects.get(app_label="i18n", model="company")
|
||||
with translation.override("en"):
|
||||
self.assertEqual(str(company_type), "i18n | Company")
|
||||
self.assertEqual(str(company_type), "I18N | Company")
|
||||
with translation.override("fr"):
|
||||
self.assertEqual(str(company_type), "i18n | Société")
|
||||
self.assertEqual(str(company_type), "I18N | Société")
|
||||
|
||||
Reference in New Issue
Block a user