From 2d8b9ab03ce67f1b0801665921974ca35928d866 Mon Sep 17 00:00:00 2001 From: Thomas Pollet Date: Tue, 28 Nov 2023 18:53:19 +0100 Subject: [PATCH] add model (flask_sqla 3.1) --- safrs/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/safrs/base.py b/safrs/base.py index cfad2e0..c5adfc7 100755 --- a/safrs/base.py +++ b/safrs/base.py @@ -11,7 +11,7 @@ from http import HTTPStatus from urllib.parse import urljoin from flask import request, url_for, has_request_context, current_app, g -from flask_sqlalchemy import Model +from flask_sqlalchemy.model import Model from sqlalchemy.orm.session import make_transient from sqlalchemy import inspect as sqla_inspect, or_ from sqlalchemy.orm.interfaces import ONETOMANY, MANYTOONE, MANYTOMANY