Hi Michael, On Feb 17, 1:02 am, Michael Bayer <[email protected]> wrote: > you'd want to stick that FKconstraint in __table_args__: > > class C(Base): > # ... > > __table_args__ = (ForeignKeyConstraint(...), ) > > that way it gets appended to the Table object's list of constraints.
no problem with that, but I still wonder why UniqueConstraint(B.foo, B.bar) is able to modify the table's list of constraints without using __table_args__ and ForeignKeyConstraint can't. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
