mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #18549 -- Fixed heading for inlines with a OneToOneField.
Used verbose_name instead of verbose_name_plural.
This commit is contained in:
committed by
Mariusz Felisiak
parent
13409a0c0d
commit
0aff3fd711
@@ -485,6 +485,11 @@ class TestInline(TestDataMixin, TestCase):
|
||||
self.assertContains(response, '<h2>Inner4 stackeds</h2>', html=True)
|
||||
self.assertContains(response, '<h2>Inner4 tabulars</h2>', html=True)
|
||||
|
||||
def test_inlines_singular_heading_one_to_one(self):
|
||||
response = self.client.get(reverse('admin:admin_inlines_person_add'))
|
||||
self.assertContains(response, '<h2>Author</h2>', html=True) # Tabular.
|
||||
self.assertContains(response, '<h2>Fashionista</h2>', html=True) # Stacked.
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='admin_inlines.urls')
|
||||
class TestInlineMedia(TestDataMixin, TestCase):
|
||||
|
||||
Reference in New Issue
Block a user