[Answered ]-Django queries: __iexact doesn't work with non-ASCII?

2👍

That’s not Unicode.

p = Pet(kind=u"Кошка")
p.save()
print Pet.objects.get(kind__iexact=u"кошка")

0👍

The point is in the sqlite3 database itself, it does not support case-insensitive search for non-ASCII characters

Leave a comment