Flask-SQLAlchemy 执行 exclude 查询

通过 filter 间接实现:

# exclude name = 'jim'
 MyClass.query.filter(MyClass.name != 'jim')

有任何意见欢迎在下方留言或者加我微信交流


Comments

comments powered by Disqus