From a7698c036759fa5609ba8c826055a313ca79e5b4 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 7 Oct 2016 07:55:02 +0200 Subject: Redirect to the dashboard. --- src/web/views/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web') diff --git a/src/web/views/admin.py b/src/web/views/admin.py index 2ee46066..a9e1e43d 100644 --- a/src/web/views/admin.py +++ b/src/web/views/admin.py @@ -95,7 +95,7 @@ def delete_user(user_id=None): flash( gettext('An error occured while trying to delete a user: %(error)s', error=error), 'danger') - return redirect(redirect_url()) + return redirect(url_for('admin.dashboard')) @admin_bp.route('/toggle_user/', methods=['GET']) -- cgit