Re: [sqlalchemy] add new row into a many_to_one relationship database via ORM

2015-07-17 Thread Mike Bayer
On 7/17/15 5:02 AM, Chengjun JIN wrote: Hi all, I am trying to add new rows into an existing many to one database via sqlalchemy ORM. What I am doing now(it seems working): # The many to one relationship is: stock = relationship('Stock', backref=backref('historicalprices', order_by=id))

[sqlalchemy] add new row into a many_to_one relationship database via ORM

2015-07-17 Thread Chengjun JIN
Hi all, I am trying to add new rows into an existing many to one database via sqlalchemy ORM. What I am doing now(it seems working): # The many to one relationship is: stock = relationship('Stock', backref=backref('historicalprices', order_by=id)) # query an object stock =