Table Versions # ID # PARENT_ID # TEXT
If parent_id == Null: its ORIGINAL if parent_id != Null: it's REVISION Is it possible to achieve this with polymorphic_identity? It seems that polymorphic_identity doesn't support NULL and not NULL __mapper_args__ = { 'polymorphic_identity':'original' } Goran Popovic -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.