From 33a9516042ae7bbed036a1de3c2f585b4b654084 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 8 Aug 2017 19:38:54 -0500 Subject: [PATCH] Specify `expire_on_commit` for tailbone db session is this right..? seems to be necessary for login now, in some cases.. which surely doesn't make sense --- tailbone/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/db.py b/tailbone/db.py index 5104caa5..041f750e 100644 --- a/tailbone/db.py +++ b/tailbone/db.py @@ -35,7 +35,7 @@ from rattail.db import SessionBase from rattail.db.continuum import versioning_manager -Session = scoped_session(sessionmaker(class_=SessionBase, rattail_config=None, rattail_record_changes=False)) +Session = scoped_session(sessionmaker(class_=SessionBase, rattail_config=None, rattail_record_changes=False, expire_on_commit=False)) # not necessarily used, but here if you need it TempmonSession = scoped_session(sessionmaker())