Re: [sqlalchemy] polymorphic_identity not recognized with non-primary mapper

2010-11-08 Thread Michael Bayer
On Nov 8, 2010, at 6:17 PM, William wrote: > When I create a non-primary mapper for my class to add an additional > computed value in certain contexts when the query runs I get the > error: > > AssertionError: No such polymorphic_identity 'M' is defined > > This works fine with the primary mapp

[sqlalchemy] polymorphic_identity not recognized with non-primary mapper

2010-11-08 Thread William
When I create a non-primary mapper for my class to add an additional computed value in certain contexts when the query runs I get the error: AssertionError: No such polymorphic_identity 'M' is defined This works fine with the primary mapper as several classes are defined as having polymorphic ide