diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-07 07:55:02 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-07 07:55:02 +0200 |
commit | a7698c036759fa5609ba8c826055a313ca79e5b4 (patch) | |
tree | 409050feb5e497adf6364b18d3bacc7d9a42c01e | |
parent | An administrator is now able to set the value of 'auto_crawling' for a user. (diff) | |
download | newspipe-a7698c036759fa5609ba8c826055a313ca79e5b4.tar.gz newspipe-a7698c036759fa5609ba8c826055a313ca79e5b4.tar.bz2 newspipe-a7698c036759fa5609ba8c826055a313ca79e5b4.zip |
Redirect to the dashboard.
-rw-r--r-- | src/web/views/admin.py | 2 |
1 files changed, 1 insertions, 1 deletions
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/<int:user_id>', methods=['GET']) |