mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
[3.2.x] Fixed #18549 -- Fixed heading for inlines with a OneToOneField.
Used verbose_name instead of verbose_name_plural.
Backport of 0aff3fd711 from master.
This commit is contained in:
committed by
Mariusz Felisiak
parent
3dc3a952b2
commit
a91bf80459
@@ -480,6 +480,11 @@ class TestInline(TestDataMixin, TestCase):
|
||||
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