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 -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

html - href attribute breaking an element -