Re: [sqlalchemy] How To Insert Relationship-Object Data Into DB?

2014-02-08 Thread Jude Lucien
school.id I get the InstrumentedAttribute error again. How to do this without doing multiple commits? On 5 February 2014 22:34, Matthew Phipps wrote: > > On Wednesday, February 5, 2014 10:44:39 AM UTC-5, Michael Bayer wrote: > >> >> On Feb 5, 2014, at 9:43 AM, Jude Lucien wrot

Re: [sqlalchemy] How To Insert Relationship-Object Data Into DB?

2014-02-05 Thread Jude Lucien
On Feb 4, 2014, at 8:20 PM, Jude Lucien wrote: > > > I am using SQLAlchemy 0.9 with Python 2.7.6 and Flask. > > I receive form data, place it into object and add the objects to the > session. When I try to do a db.commit() I get a rollback which seems to due > to the relati

[sqlalchemy] How To Insert Relationship-Object Data Into DB?

2014-02-04 Thread Jude Lucien
I am using SQLAlchemy 0.9 with Python 2.7.6 and Flask. I receive form data, place it into object and add the objects to the session. When I try to do a db.commit() I get a rollback which seems to due to the relationship object in the INSERT statement. The SQL error is as follows: INFO sq