#35876: 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.
-----------------------------+-----------------------------------------
Reporter: Namhong Kim | Type: Bug
Status: new | Component: contrib.admin
Version: 5.1 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+-----------------------------------------
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"]}),
]
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35876>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070192db44ed8a-a72b15e9-59da-4e9e-a49a-946b322a52e1-000000%40eu-central-1.amazonses.com.