Re: [sqlalchemy] Creating Sub Object with out inserting into Base Table

2018-10-23 Thread Mike Bayer
On Tue, Oct 23, 2018 at 5:38 PM Alex Rothberg wrote: > > I have added a new sub class to my model hierarchy. I would like to > instantiate it however there will be cases where the base object / row > already exists. I tried to solve this by passing in the user object to the > StaffUser but it l

[sqlalchemy] Creating Sub Object with out inserting into Base Table

2018-10-23 Thread Alex Rothberg
I have added a new sub class to my model hierarchy. I would like to instantiate it however there will be cases where the base object / row already exists. I tried to solve this by passing in the user object to the StaffUser but it looks like sqla still tried to INSERT into the User table leadin