aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/admin.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-07 07:55:02 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-07 07:55:02 +0200
commita7698c036759fa5609ba8c826055a313ca79e5b4 (patch)
tree409050feb5e497adf6364b18d3bacc7d9a42c01e /src/web/views/admin.py
parentAn administrator is now able to set the value of 'auto_crawling' for a user. (diff)
downloadnewspipe-a7698c036759fa5609ba8c826055a313ca79e5b4.tar.gz
newspipe-a7698c036759fa5609ba8c826055a313ca79e5b4.tar.bz2
newspipe-a7698c036759fa5609ba8c826055a313ca79e5b4.zip
Redirect to the dashboard.
Diffstat (limited to 'src/web/views/admin.py')
-rw-r--r--src/web/views/admin.py2
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'])
bgstack15