1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

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 01ed59f753.
This commit is contained in:
Sarah Boyce
2024-10-30 09:27:57 +01:00
parent 0eaaadd47f
commit 2c029c718f
5 changed files with 23 additions and 8 deletions

View File

@@ -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
)