diff --git a/backend/applications/extensions/init_sqlalchemy.py b/backend/applications/extensions/init_sqlalchemy.py index 58b41aa..7bebe48 100644 --- a/backend/applications/extensions/init_sqlalchemy.py +++ b/backend/applications/extensions/init_sqlalchemy.py @@ -2,7 +2,11 @@ from flask import Flask, request from flask_marshmallow import Marshmallow -from flask_sqlalchemy import SQLAlchemy, BaseQuery +from flask_sqlalchemy import SQLAlchemy +try: + from flask_sqlalchemy import BaseQuery +except ImportError: + from flask_sqlalchemy.query import Query as BaseQuery from marshmallow import fields from marshmallow.validate import (URL, Email, Range, Length, Equal, Regexp, Predicate, NoneOf, OneOf, ContainsOnly)