[sqlalchemy] Re: backref/back_populates question

2011-08-15 Thread cd34
On Aug 15, 1:05 am, Michael Bayer wrote: > A relationship() can be added at any time to any mapped class - when using > declarative config, just assigning it to the class is all that's needed, > mapper.add_property() is called as a result.     Using "backref" where you > had "back_populates" s

Re: [sqlalchemy] Re: backref/back_populates question

2011-08-14 Thread Michael Bayer
On Aug 15, 2011, at 12:46 AM, cd34 wrote: > On Aug 14, 11:39 pm, Michael Bayer wrote: >>> receive the ExtendedProfile class declarations. >> >> Well those are two different classes, so first you'd need to assign a >> relationship() to AuthUser that references ExtendedProfile. If you're >> lo

[sqlalchemy] Re: backref/back_populates question

2011-08-14 Thread cd34
On Aug 14, 11:39 pm, Michael Bayer wrote: > > receive the ExtendedProfile class declarations. > > Well those are two different classes, so first you'd need to assign a > relationship() to AuthUser that references ExtendedProfile.  If you're > looking for "backref" to do this via ExtendedProfile