jedie / PyInventory

Web based management to catalog things including state and location etc. using Python/Django.
GNU General Public License v3.0
18 stars 0 forks source link

Make it possible to use non-accented characters in search #167

Open jose1711 opened 10 months ago

jose1711 commented 10 months ago

To reproduce

Expected result

Actual result

Python provides unidecode module to strip accented characters from a string so perhaps it can be used to provide the feature.

from unidecode import unidecode
unidecode('kráľ')  # returns kral

Test environment v.0.19.3 inside a YunoHost instance

jedie commented 10 months ago

Hm. The search functionality is just from Django. Think it's possible by https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_search_results I will take a look.