On Aug 5, 3:11 pm, Michael Bayer wrote:
>
> Ultimately you're looking for a self-referential correlation here. In SQL,
> that always implies using aliases. Your column_property needs to be against
> aliased(PC) and not PC itself.
Thanks - that did the trick. I can't believe it was such
Trying again without tab indents. Hopefully the formatting works this
time.
from objects import *
class Device(Base):
__tablename__="testdev"
devtype = Column(Unicode(20), primary_key = True)
__mapper_args__ = {'polymorphic_on': devtype}
mac = Column(Unicode(128), primary_key = Tr