Django 是否有像 __not_equal 这样的字段查找? (字段查找是__exact、__contains等)
请您参考如下方法:
将__exact、__contains 等之一与exclude() 一起使用而不是 filter()。
Django 是否有像 __not_equal 这样的字段查找? (字段查找是__exact、__contains等)
请您参考如下方法:
将__exact、__contains 等之一与exclude() 一起使用而不是 filter()。