I want to do do a case-insensitive startswith
query in Django:
books = Book.objects.filter(title__iexact__startswith=query)
But I get the following error message:
FieldError at /names/
Join on field 'title' not permitted
How can I specify a case-insensitive startswith
in Django?
istartswith
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With