Search code examples
pythondjangowagtaildjango-taggitweblog

Customizing admin ui-widget in Wagtail


I use django-taggit 0.23.0 and wagtail 2.0.2 for a weblog app called puput 1.0.2.

Puput github repo

My preferred language is Persian (Farsi) in Wagtail's admin dashboard and one of my language letters is on the "comma" key of keyboard.
So, each time I want to use that letter, tag gets submitted and I cannot add tags properly. How can I customize ui-widget in adding/editing tags in admin's dashboard?
I also tried using these command lines in settings and overwriting its functions but yet didn't solve my problem:

TAGGIT_TAGS_FROM_STRING = 'utils.comma_joiner'
TAGGIT_TAGS_FROM_STRING = 'utils.comma_splitter'

Any solution would be a lot appreciated!!!


Solution

  • You should upgrade to Wagtail 2.3. This includes a fix for the same issue on Cyrillic keyboards (where the letter б corresponds to the comma key) and should hopefully fix the problem for Persian too.

    Original bugfix

    Wagtail 2.3 release notes