summaryrefslogtreecommitdiff
path: root/tests/admin_views/tests.py
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-10-30 09:27:57 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-10-31 06:38:07 +0100
commit2c029c718f45341cdd43ee094c24488743c633e6 (patch)
treea0b58f4414e9439437fcd9aabb36e75d70d7d10c /tests/admin_views/tests.py
parent0eaaadd47fa00baabe12be3ed736aa016b6d327e (diff)
Fixed #35876 -- Displayed non-ASCII fieldset names when rendering ModelAdmin.fieldsets.
Thank you to Namhong Kim for the report, and to Mariusz Felisiak and Marijke Luttekes for the review. Regression in 01ed59f753139afb514170ee7f7384c155ecbc2d.
Diffstat (limited to 'tests/admin_views/tests.py')
-rw-r--r--tests/admin_views/tests.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 17174ff5e0..c5d8b8f4f6 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -2533,6 +2533,19 @@ class AdminViewPermissionsTest(TestCase):
self.assertContains(
response, '<input type="submit" value="Save and view" name="_continue">'
)
+ self.assertContains(
+ response,
+ '<h2 id="fieldset-0-0-heading" class="fieldset-heading">Some fields</h2>',
+ )
+ self.assertContains(
+ response,
+ '<h2 id="fieldset-0-1-heading" class="fieldset-heading">'
+ "Some other fields</h2>",
+ )
+ self.assertContains(
+ response,
+ '<h2 id="fieldset-0-2-heading" class="fieldset-heading">이름</h2>',
+ )
post = self.client.post(
reverse("admin:admin_views_article_add"), add_dict, follow=False
)