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
- [Answered ]-Django template if inside a for loop – Invalid block tag on line 13: 'else', expected 'empty' or 'endfor'.
- [Answered ]-Django assertionerror: assert token.contents == 'endif' in template?
- [Answered ]-Django admin: view hangs on field_sets block
- [Answered ]-How can I combine/nest EnumFields in Django?
- [Answered ]-Django Multiple db with read only
Source:stackexchange.com