djangodjango-admindjango-admin-filters

search fields django admin with uppercase/lowercase


In my Django admin app i have this code in admin.py:

search_fields = ["app_product_mapping", "id", "app__app_name", "product__product_name"]

I noticed that the search field is sensitive to Uppercase and Lowercase and I want to make it sensitive to all over.

How can I do that? TNX!


Solution

  • The problem was resolved - I changed in my DB the Collation type to 'utf16_unicode_520_ci' and it works!