summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndrea Borghi <danduk82@users.noreply.github.com>2019-11-11 14:55:32 +0100
committerAndrea Borghi <andrea.borghi@swisstopo.ch>2019-11-11 16:01:38 +0100
commit418e64eb644f7a850ec87002ec8c875eb8b1b843 (patch)
tree5bb052e54d4287a8aab9ce8fedaca2aa7b7e2db3 /docs
parent9ffdc7c9270ca9ef25ed01495e5f210db9d37710 (diff)
downloadpyramid-418e64eb644f7a850ec87002ec8c875eb8b1b843.tar.gz
pyramid-418e64eb644f7a850ec87002ec8c875eb8b1b843.tar.bz2
pyramid-418e64eb644f7a850ec87002ec8c875eb8b1b843.zip
remove autoflush=False
autoflush is necessary for the current implementation views.py
Diffstat (limited to 'docs')
-rw-r--r--docs/quick_tutorial/databases/tutorial/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/quick_tutorial/databases/tutorial/models.py b/docs/quick_tutorial/databases/tutorial/models.py
index 2d70e0db6..8e6649d49 100644
--- a/docs/quick_tutorial/databases/tutorial/models.py
+++ b/docs/quick_tutorial/databases/tutorial/models.py
@@ -15,7 +15,7 @@ from sqlalchemy.orm import (
from zope.sqlalchemy import register
-DBSession = scoped_session(sessionmaker(autoflush=False))
+DBSession = scoped_session(sessionmaker())
register(DBSession)
Base = declarative_base()