Re: [sqlalchemy] column_property with load_only and inheritance

2015-11-02 Thread Mike Bayer
On 11/02/2015 09:16 AM, Mattias Lagergren wrote: > Hi, > > I'm trying to use load_only and joinedload on a relationship > model.Asset.parent. The parent relation is polymorphic and can be either > Task or Project with the common Base class called Context. > > | > importsqlalchemy.orm >

[sqlalchemy] column_property with load_only and inheritance

2015-11-02 Thread Mattias Lagergren
Hi, I'm trying to use load_only and joinedload on a relationship model.Asset.parent. The parent relation is polymorphic and can be either Task or Project with the common Base class called Context. import sqlalchemy.orm import sqlalchemy.inspection entity = model.session