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?

Edit
Report