Skip to content

Commit

Permalink
Revert "Add SQLAlchemy 1 support back to test_multi_pk.py"
Browse files Browse the repository at this point in the history
declarative_base is available from sqlalchemy.orm in SQLAlchemy 1.4.

This reverts commit a050b56.
  • Loading branch information
cjmayo committed Jul 30, 2024
1 parent 1cd3621 commit 9ea52a8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions flask_admin/tests/sqla/test_multi_pk.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
from .test_basic import CustomModelView

from flask_sqlalchemy.model import Model
try:
# SQLAlchemy 2.0
from sqlalchemy.orm import declarative_base
except ImportError:
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import declarative_base


def test_multiple_pk(app, db, admin):
Expand Down

0 comments on commit 9ea52a8

Please sign in to comment.