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
>
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