python - IN condition in Where clause on Peewee -


i accomplish sql 'in' condition clause in python's peewee orm.

order.select().where(order.statusid in statuses) 

is possible?

i using postgres in case there compatibility issues proposed solution.

looking @ documentation found out there specific query operations in lookup: .in_(value)

so guess how work:

order.select().where(order.statusid.in_(statuses)) 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -