1
0
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:
Hrushikesh Vaidya
2022-09-13 19:00:57 +05:30
committed by Mariusz Felisiak
parent 18473004af
commit a52bdea5a2
5 changed files with 14 additions and 7 deletions

View File

@@ -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é")