Case insensitive search for Django on Postgres doesn't work

serg | Sept. 24, 2021, 10:05 a.m.

I had a trouble searching a model instance by a char field with cyrillic characters using icontains It was due to a lc_collate='C' for my Postgres database. I had to recreate a database using the correct collation. The full answer on stackoverflow