From 187a789f99ecbc708de517c6b54d480b68ba59fe Mon Sep 17 00:00:00 2001 From: antoliny0919 Date: Thu, 7 Aug 2025 22:17:50 +0900 Subject: Fixed #34643 -- Moved inputs beneath labels and errors in admin forms. Thanks Sarah Boyce and Jacob Walls for reviews. Co-authored-by: Hrushikesh Vaidya --- tests/admin_inlines/tests.py | 24 +++++++++++--------- tests/admin_views/admin.py | 1 + tests/admin_views/models.py | 4 ++-- tests/admin_views/tests.py | 38 ++++++++++++++++++++++++++----- tests/admin_widgets/tests.py | 35 +++++++++++++++++++++++++++++ tests/auth_tests/test_templates.py | 46 ++++++++++++++++++++++++++++++++++++++ tests/auth_tests/test_views.py | 3 ++- 7 files changed, 131 insertions(+), 20 deletions(-) (limited to 'tests') diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py index 6956c37740..50b3a7baba 100644 --- a/tests/admin_inlines/tests.py +++ b/tests/admin_inlines/tests.py @@ -384,21 +384,23 @@ class TestInline(TestDataMixin, TestCase): response = self.client.get(url) # The whole line containing name + position fields is not hidden. self.assertContains( - response, '
' + response, + "
', ) # The div containing the position field is hidden. self.assertInHTML( - '', response.rendered_content, ) self.assertInHTML( - '', response.rendered_content, ) @@ -419,17 +421,17 @@ class TestInline(TestDataMixin, TestCase): # The whole line containing position field is hidden. self.assertInHTML( '