[sqlalchemy] Mixing a column declared with @declared_attr into a child class is not mapped in parent class when using STI

2012-04-16 Thread Amos
I am attempting to use STI with mixins on the derived/inheriting classes. If the mixin has a simple Column, everything works great. But when I have a ForeignKey on the Column, and therefore use the `declared_attr` decorator, I get an exception when I attempt to query the child collection. For the

Re: [sqlalchemy] Mixing a column declared with @declared_attr into a child class is not mapped in parent class when using STI

2012-04-16 Thread Michael Bayer
what version of SQLA is that ? I cannot reproduce. test case: from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base, declared_attr, has_inherited_table Base= declarative_base() class Person(Base): id = Column(Integer,