Django -- Cannot resolve keyword 'name_icontains' into field

Cannot resolve keyword 'name_contains' into field. Choices are: address, create_time, guest, id, limit, name, start_time, status 你去看看models部分,應該是title__icontains,注意是__,而不是_ icontains是不區分大小寫模糊匹配,查詢時用 字
相關文章
相關標籤/搜索