Re: [sqlalchemy] How to properly handle bidirectional many-to-many and their double entries

2018-03-02 Thread Mike Bayer
On Fri, Mar 2, 2018 at 1:17 AM, wrote: > Hi, > > I've been playing with the Many-to-Many relationship from the documentation. > Suppose I have a student and teacher and would like to define a > bidirectional “favorite” relationship between the two, i.e. if a student is >

[sqlalchemy] How to properly handle bidirectional many-to-many and their double entries

2018-03-01 Thread jens . troeger
Hi, I've been playing with the Many-to-Many relationship from the documentation. Suppose I have a student and teacher and would like to define a bidirectional “favorite” relationship between the two, i.e. if a