A newbie question: Is there a way to define a subclass using declarative base which defined the polymorphic identity on more than one value? Is there a way to do it outside the declarative base?
A bane example: In subclass Citrus I would like to be able to declare several types of fruits class Fruits(Base) __mapper_args__ = {'polymorphic_on': type} class Citrus(Fruits) __mapper_args__ = {'polymorphic_identity': 'orange'} __mapper_args__ = {'polymorphic_identity': 'lemon'} But this doesn't work ... but I would like subclass Citrus to relate to both ORANGE and LEMON Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@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 -~----------~----~----~----~------~----~------~--~---