On 2/14/2014 3:36 PM, Michael Bayer wrote:
the django ORM would write an autogenerated primary key value to a foreign key column at the same time in a single INSERT? What magic might they have discovered there? (hint: i am sure they don't do that)
Naw. If you recall I was supplying the pkey Animal(id_=0) from the get-go. That's prolly what allowed it to work. And it's the same for SQlAlchemy now that I know to stuff the sire_id rather than feed an object to sire.
We'll see if my hack holds up when I try this on a real database :-) Michael -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out.
