On May 19, 9:52 pm, Kiran Jonnalagadda <j...@pobox.com> wrote: > class Note(Entity): > __tablename__ = 'notes' > __mapper_args__ = {'polymorphic_identity': u'note', > 'inherit_condition': (id == Entity.id)} > id = Column(Integer, ForeignKey('entities.id'), primary_key=True)
There's my problem. __mapper_args__ is referring to id before it is defined. Swapping the order fixed it. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.