Non-ASCII fieldset names are not displayed in the admin
In Django ModelAdmin, when defining fieldsets with Korean characters or using gettext_lazy, the fieldset names do not display correctly. This issue occurs because the slugify filter has allow_unicode set to False, which removes all non-ASCII characters.
class BlogAdmin(admin.ModelAdmin):
fieldsets = [
("이름", {"fields": ["name"]}),
]
Change History
(7)
Cc: |
Marijke Luttekes added
|
Severity: |
Normal → Release blocker
|
Triage Stage: |
Unreviewed → Accepted
|
Has patch: |
set
|
Owner: |
set to Sarah Boyce
|
Status: |
new → assigned
|
Summary: |
In the fieldset.html template for Django admin, using the slugify function within the with block causes the fieldset name to not display correctly when it contains Korean characters. → Non-ASCII fieldset names are not displayed in the admin
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Replicated thank you! Regression in 01ed59f753139afb514170ee7f7384c155ecbc2d
Possible regression test:
tests/admin_views/admin.py
tests/admin_views/tests.py