summaryrefslogtreecommitdiff
path: root/tests/admin_inlines
diff options
context:
space:
mode:
authorTimothy McCurrach <tim.mccurrach@gmail.com>2021-01-18 07:33:42 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-18 07:38:12 +0100
commit13409a0c0db0ae322d58a1fceef678f8bca067fb (patch)
treea29f4380236b22d66952892345d91c4f8eef0a68 /tests/admin_inlines
parente58f79c535affa9719f1a9f2b9762e338384a22e (diff)
downloaddjango-13409a0c0db0ae322d58a1fceef678f8bca067fb.tar.gz
Refs #18549 -- Added test for heading of foreign key inlines.
Diffstat (limited to 'tests/admin_inlines')
-rw-r--r--tests/admin_inlines/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py
index e0d87ead44..c71bf1efed 100644
--- a/tests/admin_inlines/tests.py
+++ b/tests/admin_inlines/tests.py
@@ -480,6 +480,11 @@ class TestInline(TestDataMixin, TestCase):
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')
class TestInlineMedia(TestDataMixin, TestCase):