I am developing a simple web page with Django and I need to implement search function. I am currently using something like this:
search_box = request.GET['search_box']
X = Foo.objects.filter(Q(title__contains=search_box) | Q(info__contains=search_box)).values()
It checks my database if specified columns contains searched string, but what if I search for "kočík" but my database contains "kocik". How I can remove diacritis from string in Python 3, or what is the best way to implement this? Thanks