Customizing admin ui-widget in Wagtail

309 Views Asked by At

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!!!

2

There are 2 best solutions below

5
On BEST ANSWER

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

0
On

Upgrading to Wagtail 2.3 solves this problem, but, another problem occurs with compatibility of puput with Wagtail, which happens because in latest version of puput 2.0.1, the frontend search view was deleted but, you can solve this problem by extending/changing puput urls and deleting the search view url.