Reputation: 5459
I have a unnaccent_string
function in my postgres database like described here:
comparing strings in PostgreSQL
so that
unnaccent_string(órfão) == 'orfao'
Is it possible to build a Django QuerySet that would let me do something like Person.objects.filter(unnaccent_string(name)__icontains='joao')
?
Upvotes: 2
Views: 439