标签: python django django-queryset
我想在Django中做一个不区分大小写的startswith查询:
startswith
books = Book.objects.filter(title__iexact__startswith=query)
但是我收到以下错误消息:
FieldError at /names/ Join on field 'title' not permitted
如何在Django中指定不区分大小写的startswith?
答案 0 :(得分:26)
istartswith