RE: [sqlalchemy] When creating many-to-many relationship I get: NoReferencedTableError

2012-02-08 Thread Jackson, Cameron
Have you tried changing the order so that Card is defined before collection_cards? Obviously you're passing 'cards.id' as a string so that the order doesn't matter, but have you tried it anyway? -Original Message- From: sqlalchemy@googlegroups.com [mailto:sqlalchemy@googlegroups.com]

Re: [sqlalchemy] When creating many-to-many relationship I get: NoReferencedTableError

2012-02-08 Thread Michael Bayer
On Feb 8, 2012, at 6:06 PM, Stefan Urbanek wrote: Hi, I am trying to create a simple many-to-many relationship using PostgreSQL in a specific schema ('cards'). I do it like this: class BaseObject(object): id = Column(Integer, primary_key=True) date_created = Column(DateTime)