From b55ffb6f313c0635b23eddcc6b4ab0a369c9d759 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 30 Jan 2018 04:30:52 +0100 Subject: [PATCH] Don't autoflush/autocommit ? --- app/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 2f38666..9b9eb7e 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,7 +1,7 @@ from flask import Flask from flask_sqlalchemy import SQLAlchemy -db = SQLAlchemy() +db = SQLAlchemy(session_options={"autoflush": False, "autocommit": False, "expire_on_commit": False}) def create_app():