Don't autoflush/autocommit ?

This commit is contained in:
Alexandre Aubin 2018-01-30 04:30:52 +01:00 committed by GitHub
parent e02edd2ee6
commit b55ffb6f31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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():