set user as default admin page
This commit is contained in:
parent
f9b0bdc2ed
commit
67de0e3c5b
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue