[sqlalchemy] preserve polymorphic_identity for subclasses

2015-06-29 Thread Burak Arslan
hello, here's a test case: https://gist.github.com/plq/5ed0c135222ea76d77fc (also see below) is it possible to preserve the polymorphic_identity values of subclasses that contain changes to non-sqla parts of a class? I understand that the reason for this is D2.__mapper__.class_ != D2. Is there

Re: [sqlalchemy] preserve polymorphic_identity for subclasses

2015-06-29 Thread Mike Bayer
On 6/29/15 8:47 AM, Burak Arslan wrote: hello, here's a test case: https://gist.github.com/plq/5ed0c135222ea76d77fc (also see below) is it possible to preserve the polymorphic_identity values of subclasses that contain changes to non-sqla parts of a class? I understand that the reason