-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Used slugify template tag for tabs not working with non-ASCII alphanumeric characters #237
Comments
Hi @EngFarisAlsmawi, thank you for reporting this problem. The slugified tab name is used for displaying readable urls (and changing the order of tabs doesn't impact direct links), for this reason I would not fix it using tab numbers, but I would fix this by using |
Hi @fabiocaccamo , thank you for quick response. Although I think you'd be careful of this: I noticed that you used the model verbose name as an alternative to the fieldset that do not have a name, |
Personnally I would find it OK to get generated IDs like |
In addition, currently I am using |
I reported this bug separately by mistake. but, i don't really understand the responses here. |
@rikengct yes it will be fixed in the next release. |
I can offer a temporary solution: |
TBH that sounds a little heavy to me, and could conflict with usage of the same package by a project. |
@offbrok thank you for the suggestion, but it seems a little bit overkill for this issue. The problem to solve is very simple and |
@fabiocaccamo Perhaps my solution is more complicated, but it will help solve the problem for those who need non-standard functionality slugify. For example, in addition to slugify you need to translate to another language. I suggested this to people who will look for a solution and find it here. |
@EngFarisAlsmawi @rikengct @offbrok @merwok fixed in |
Hello,
Thank you for your amazing django package
When used slugify template tag for tabs not working with non-ASCII alphanumeric characters
django-admin-interface/admin_interface/templates/admin/change_form.html
Line 21 in 8d82d80
instated you can used forloop counter
used tab with loop of counter for fieldset
used itab with loop counter for inlines formset
this is full patch code:
The text was updated successfully, but these errors were encountered: