Re: [sqlalchemy] Inheritance, and tableless base class with relationship

2013-05-31 Thread Michael Bayer
On May 31, 2013, at 1:06 PM, developer.l...@gmail.com wrote: > Hi. I have the following structuring of classes with a base class without a > table. > > User(base): >address = relationship('Address', backref=backref("user", uselist=False)) >address_id = Column(Integer) > > Address(base)

[sqlalchemy] Inheritance, and tableless base class with relationship

2013-05-31 Thread developer . loke
Hi. I have the following structuring of classes with a base class without a table. User(base): address = relationship('Address', backref=backref("user", uselist=False)) address_id = Column(Integer) Address(base): __tablename__ = 'address' info = Column(String(255)) Info2 = Column(