Re: [sqlalchemy] Integrity error when using association_proxy - one of the foreign keys is missing

2011-08-02 Thread Benjamin Sims
Thanks so much for the help. For the record, setting an __init__ argument on the association argument did the trick. Ben On 2 Aug 2011, at 01:47, Michael Bayer mike...@zzzcomputing.com wrote: On Aug 1, 2011, at 8:34 PM, somewhatofftheway wrote: Hi, I'm trying to convert a

[sqlalchemy] Integrity error when using association_proxy - one of the foreign keys is missing

2011-08-01 Thread somewhatofftheway
Hi, I'm trying to convert a 'simple' many-to-many relationship to an association object in order to allow the relationship to have attributes. I've followed the code in examples/association/ proxied_association.py fairly closely (or so I thought) but it isn't working for me. As an example, let's

Re: [sqlalchemy] Integrity error when using association_proxy - one of the foreign keys is missing

2011-08-01 Thread Michael Bayer
On Aug 1, 2011, at 8:34 PM, somewhatofftheway wrote: Hi, I'm trying to convert a 'simple' many-to-many relationship to an association object in order to allow the relationship to have attributes. I've followed the code in examples/association/ proxied_association.py fairly closely (or so