mirror of
https://github.com/django/django.git
synced 2025-01-18 14:24:39 +00:00
Refs #18549 -- Added test for heading of foreign key inlines.
This commit is contained in:
parent
e58f79c535
commit
13409a0c0d
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user