[sqlalchemy] polymorphic_identity as an expression

2015-08-20 Thread Richard Gerd Kuesters
hello! is it possible to set the polymorphic_identity mapper param as an expression? example: __mapper_args__ = { polymorphic_identity: in_('employee', 'recruit') } thanks a lot, richard. -- You received this message because you are subscribed to the Google Groups

Re: [sqlalchemy] polymorphic_identity as an expression

2015-08-20 Thread Mike Bayer
polymorphic_identity, no. polymorphic_on, yes.work it from that end instead (e.g. using CASE). On 8/20/15 10:05 AM, Richard Gerd Kuesters wrote: hello! is it possible to set the polymorphic_identity mapper param as an expression? example: __mapper_args__ = {

Re: [sqlalchemy] polymorphic_identity as an expression

2015-08-20 Thread Richard Gerd Kuesters
thanks mike! that's what i thought, but was wondering if there were a shortcut using identity :) cheers, richard. On 08/20/2015 12:15 PM, Mike Bayer wrote: polymorphic_identity, no. polymorphic_on, yes.work it from that end instead (e.g. using CASE). On 8/20/15 10:05 AM, Richard