Refs #18549 -- Added test for heading of foreign key inlines.

This commit is contained in:
Timothy McCurrach 2021-01-18 07:33:42 +01:00 committed by Mariusz Felisiak
parent e58f79c535
commit 13409a0c0d
1 changed files with 5 additions and 0 deletions

View File

@ -480,6 +480,11 @@ class TestInline(TestDataMixin, TestCase):
html=True html=True
) )
def test_inlines_plural_heading_foreign_key(self):
response = self.client.get(reverse('admin:admin_inlines_holder4_add'))
self.assertContains(response, '<h2>Inner4 stackeds</h2>', html=True)
self.assertContains(response, '<h2>Inner4 tabulars</h2>', html=True)
@override_settings(ROOT_URLCONF='admin_inlines.urls') @override_settings(ROOT_URLCONF='admin_inlines.urls')
class TestInlineMedia(TestDataMixin, TestCase): class TestInlineMedia(TestDataMixin, TestCase):