On Thu, Feb 23, 2012 at 4:49 PM, Adam Tauno Williams
<awill...@whitemice.org> wrote:
> This works fine.  But if I create a Project object I can't relate it to
> a ProjectInfo object within the same transaction without calling flush()
> first.  Is there some way to encourage SQLalchemy to allocate a value
> from the sequence when the object is created?

If you just use the relation (project.info = project_info), alchemy
will do everything for you.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to