Skip to content
This repository was archived by the owner on May 3, 2025. It is now read-only.

Commit 2cf0d7e

Browse files
committed
Update application base
1 parent 751a12c commit 2cf0d7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

esmerald_admin/application.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from sqladmin import Admin as SQLAdmin # noqa
1010
from sqladmin import ModelView as SQLAModelView # noqa
1111
from sqladmin._types import ENGINE_TYPE
12+
from sqladmin.application import BaseAdminView
1213
from sqladmin.authentication import AuthenticationBackend
1314
from sqladmin.models import BaseView as SQLAdminBaseView # noqa
1415
from sqlalchemy.orm.session import sessionmaker
@@ -39,7 +40,7 @@ class ModelView(SQLAModelView, BaseView): # type: ignore
3940
...
4041

4142

42-
class Admin(SQLAdmin):
43+
class Admin(SQLAdmin, BaseAdminView):
4344
"""
4445
Tha base inherited for Saffier which inherits from the base of sqladmin package.
4546
"""

0 commit comments

Comments
 (0)