X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/blobdiff_plain/2920145fe2531a7f64b9a718524c8bf2785f87be..3df757befd07a92962aa1b969bacb8115934188f:/python/database/models.py diff --git a/python/database/models.py b/python/database/models.py index 6ba0446..67d5de8 100644 --- a/python/database/models.py +++ b/python/database/models.py @@ -26,7 +26,7 @@ __all__ = ['meta', ] meta = ThreadLocalMetaData() -session = orm.scoped_session(orm.sessionmaker(transactional=False)) +session = orm.scoped_session(orm.sessionmaker(transactional=False, autoflush=False)) machine_table = Table('machines', meta, Column('machine_id', Integer, primary_key=True, nullable=False),