Re: [sqlalchemy] Limiting queries from single-table inheritance declarative models

2016-12-03 Thread mike bayer
On 12/01/2016 05:29 PM, Tucker Beck wrote: This is what I ended up with, and it *seems* to work pretty well. Does my approach here pass the sniff test? everything looks idiomatic, so if it does what you need, then it's greatg! from sqlalchemy.ext.hybrid import hybrid_property from

Re: [sqlalchemy] Limiting queries from single-table inheritance declarative models

2016-12-03 Thread Tucker Beck
This is what I ended up with, and it *seems* to work pretty well. Does my approach here pass the sniff test? from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.ext.declarative import declarative_base, declared_attr from sqlalchemy.orm import sessionmaker, relationship,