mirror of
https://github.com/django/django.git
synced 2025-09-28 13:04:54 +00:00
Refs #18549 -- Added test for heading of foreign key inlines.
This commit is contained in:
parent
e58f79c535
commit
13409a0c0d
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue