[sqlalchemy] Looking up the class of a backref

2012-09-24 Thread John Anderson
If I have a DB structure similar to this: class Parent(Base): pass class Child(Base): parent = relation(Parent, backref='children') and I have an instanced of Parent and want to figure out what the class of instance.children is, how would I do that? -- You received this message

Re: [sqlalchemy] Looking up the class of a backref

2012-09-24 Thread Michael Bayer
On Sep 24, 2012, at 11:16 AM, John Anderson wrote: If I have a DB structure similar to this: class Parent(Base): pass class Child(Base): parent = relation(Parent, backref='children') and I have an instanced of Parent and want to figure out what the class of instance.children