[sqlalchemy] Strange bevahvior with Association Object - Explanation?

2014-04-05 Thread Christian Kastner
Hi, I have a many-many relationship implemented as an Association Object. When I add an association between a parent and a child, the list of associations within the parent contains the child element twice. A flush() does not help, but commit() resolves the issue. The generated SQL only creates

Re: [sqlalchemy] Strange bevahvior with Association Object - Explanation?

2014-04-05 Thread Michael Bayer
On Apr 5, 2014, at 8:14 AM, Christian Kastner debian.kvr...@gmail.com wrote: Hi, I have a many-many relationship implemented as an Association Object. When I add an association between a parent and a child, the list of associations within the parent contains the child element twice. A

Re: [sqlalchemy] Strange bevahvior with Association Object - Explanation?

2014-04-05 Thread Christian Kastner
On 2014-04-05 16:58, Michael Bayer wrote: On Apr 5, 2014, at 8:14 AM, Christian Kastner debian.kvr...@gmail.com wrote: I have a many-many relationship implemented as an Association Object. When I add an association between a parent and a child, the list of associations within the parent