On Thu, Feb 23, 2012 at 4:49 PM, Adam Tauno Williams <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
