Skip to content

Commit ca99546

Browse files
committed
fix auth model pages
1 parent c68356d commit ca99546

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crudadmin/admin_interface/model_view.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class BulkDeleteRequest(BaseModel):
4545

4646

4747
class ModelView:
48-
r"""
48+
"""
4949
View class for managing CRUD operations and UI for database models in FastAPI admin interface.
5050
5151
Features:
@@ -754,7 +754,7 @@ async def get_model_admin_page_inner(
754754
request: Request,
755755
admin_db: AsyncSession = Depends(self.db_config.get_admin_db),
756756
app_db: AsyncSession = Depends(
757-
cast(Callable[..., AsyncGenerator[AsyncSession, None]], self.session)
757+
cast(Callable[..., AsyncGenerator[AsyncSession, None]], self.db_config.get_app_session())
758758
),
759759
) -> Response:
760760
"""Display the model list page, allowing pagination, sorting, and searching."""

0 commit comments

Comments
 (0)