set user as default admin page

This commit is contained in:
Son NK 2021-01-12 18:14:21 +01:00
parent f9b0bdc2ed
commit 67de0e3c5b
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class SLAdminIndexView(AdminIndexView):
if not current_user.is_authenticated or not current_user.is_admin:
return redirect(url_for("auth.login", next=request.url))
return super(SLAdminIndexView, self).index()
return redirect("/admin/user")
class UserAdmin(SLModelView):