diff options
| author | Andrea Borghi <danduk82@users.noreply.github.com> | 2019-11-11 14:55:32 +0100 |
|---|---|---|
| committer | Andrea Borghi <andrea.borghi@swisstopo.ch> | 2019-11-11 16:01:38 +0100 |
| commit | 418e64eb644f7a850ec87002ec8c875eb8b1b843 (patch) | |
| tree | 5bb052e54d4287a8aab9ce8fedaca2aa7b7e2db3 /docs | |
| parent | 9ffdc7c9270ca9ef25ed01495e5f210db9d37710 (diff) | |
| download | pyramid-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.py | 2 |
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() |
