-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin Form tabs i18n #328
Comments
question is actual, can you fix? |
Unfortunately, no. I will try to solve soon.
сб, 4 мая 2024 г., 19:31 vage-mel ***@***.***>:
… question is actual, can you fix?
—
Reply to this email directly, view it on GitHub
<#328 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS3O22NGBNDXV5ZIQ5HWLUDZATWMPAVCNFSM6AAAAABFEPWPROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGIZDEMZXGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
problem maybe with use slugify in tabs |
@Adilkhanweb can union fields and stacked inline in one tab? how in django suit |
+1 same issue here |
Here is my solution
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.text import slugify
register = template.Library()
@register.filter(is_safe=True)
@stringfilter
def slugify_allow_unicode(value):
return slugify(value, allow_unicode=True)
|
@rocketpunch-dev @ZhangHang @Adilkhanweb would you mind to provide exact title which is causing this issue? I just tested the functionality with special characters without any problems. |
Looks like a language code issue @lukasvinclav example from django.utils.text import slugify
slugify('A S D F') # 'a-s-d-f'
# korean
slugify('가 나 다 라') # ''
slugify('가 나 다 라', allow_unicode=True) # '가-나-다-라' https://docs.djangoproject.com/en/4.2/ref/utils/#django.utils.text.slugify |
Fixed in #422 |
@Adilkhanweb can union fields and stacked inline in one tab? how in django suit |
Admin Form Tabs not working correctly when using i18n for titles of the fieldsets
In my case I am using cyrillic.
In result
<div class="tab-wrapper fieldset-" x-show="openTab == ''" style="display: none;">
Should be
<div class="tab-wrapper fieldset-description" x-show="openTab == 'description'" style="display: none;">
The titles should be slugified
The text was updated successfully, but these errors were encountered: