Skip to content

Commit

Permalink
Resolve test_multi_pk.py Flask-SQLAlchemy Model DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilman authored and cjmayo committed Oct 18, 2023
1 parent 5212734 commit d9a1db6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flask_admin/tests/sqla/test_multi_pk.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
from . import setup
from .test_basic import CustomModelView

from flask_sqlalchemy import Model
try:
# Flask-SQLAlchemy 3
from flask_sqlalchemy.model import Model
except ImportError:
from flask_sqlalchemy import Model
from sqlalchemy.orm import declarative_base


Expand Down

0 comments on commit d9a1db6

Please sign in to comment.