Re: [sqlalchemy] Re: One to One relationship
On Fri, Nov 11, 2016 at 6:59 AM, Alfred Soengwrote: > It's the issue in the inheritance: > What I want to do is like this: > class Employee(Base): > __tablename__ = 'employee' > id = Column( > Integer, > primary_key=True, > ) > type_name =
[sqlalchemy] Re: One to One relationship
It's the issue in the inheritance: What I want to do is like this: class Employee(Base): __tablename__ = 'employee' id = Column( Integer, primary_key=True, ) type_name = Column(DBT.STRING) __mapper_args__ = {'polymorphic_on': 'type_name'} class