Here are the examples of the python api sqlalchemy.orm.with_polymorphic.where taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
0
View Complete Implementation : task.py
Copyright Apache License 2.0
Author : agdsn
Copyright Apache License 2.0
Author : agdsn
def get_active_tasks_by_type(type):
return session.session.query(
with_polymorphic(Task, "*")
.where(Task.type == type)
).all()