mirror of
https://github.com/django/django.git
synced 2025-11-24 04:47:12 +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:
parent
0eaaadd47f
commit
2c029c718f
5 changed files with 23 additions and 8 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue