Re: [sqlalchemy] Unique constraint on non-primary key fields of a many-to-many relationship

2013-08-07 Thread Michael Bayer
On Aug 7, 2013, at 6:02 AM, Joe Jean wrote: > Hi All, > > I'm using flask-sqlalchemy. I have a many-to-many relationship between a > professor table and a course table as follow: > > course_professors = db.Table('course_professors', > db.Column('course_id', db.Intege

[sqlalchemy] Unique constraint on non-primary key fields of a many-to-many relationship

2013-08-07 Thread Joe Jean
Hi All, I'm using flask-sqlalchemy. I have a many-to-many relationship between a professor table and a course table as follow: course_professors = db.Table('course_professors', db.Column('course_id', db.Integer, db.ForeignKey('course.id')),