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

Commit aba79cd

Browse files
committed
Update application base
1 parent 751a12c commit aba79cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

esmerald_admin/application.py

Lines changed: 3 additions & 2 deletions
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
"""
@@ -57,7 +58,7 @@ def __init__(
5758
templates_dir: str = "templates",
5859
authentication_backend: Optional[AuthenticationBackend] = None,
5960
) -> None:
60-
super().__init__(
61+
super(BaseAdminView, self).__init__(
6162
app=app, # type: ignore
6263
engine=engine,
6364
session_maker=session_maker,

0 commit comments

Comments
 (0)