diff options
| author | Gregory N. Schmit <schmitgreg@gmail.com> | 2018-12-21 01:24:04 -0600 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-02-07 19:56:47 -0500 |
| commit | 48c17807a99f7a4341c74db19e16a37b010827c2 (patch) | |
| tree | f5af98a18c850b96161b3c758fccf7eb7b617482 /tests/i18n/contenttypes | |
| parent | 5cc6f02f91e8860c867cc68cf42e66b5bb54c63d (diff) | |
Fixed #16027 -- Added app_label to ContentType.__str__().
Diffstat (limited to 'tests/i18n/contenttypes')
| -rw-r--r-- | tests/i18n/contenttypes/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/i18n/contenttypes/tests.py b/tests/i18n/contenttypes/tests.py index e2b7157692..d23e2bdf56 100644 --- a/tests/i18n/contenttypes/tests.py +++ b/tests/i18n/contenttypes/tests.py @@ -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), 'Company') + self.assertEqual(str(company_type), 'i18n | Company') with translation.override('fr'): - self.assertEqual(str(company_type), 'Société') + self.assertEqual(str(company_type), 'i18n | Société') |
