diff --git a/pyalchemybiz/model/__init__.py b/pyalchemybiz/model/__init__.py index 7b12f5b..1f7b6b7 100644 --- a/pyalchemybiz/model/__init__.py +++ b/pyalchemybiz/model/__init__.py @@ -12,7 +12,7 @@ log = logging.getLogger(__name__) def init_model(engine): """Call me before using any of the tables or classes in the model.""" - sm = orm.sessionmaker(autoflush=True, transactional=True, bind=engine) + sm = orm.sessionmaker(autoflush=True, autocommit=False, bind=engine) meta.engine = engine meta.Session = orm.scoped_session(sm)