From 36b038bec1b7188b33fc24fc7334f0f70068b29c Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Tue, 20 Feb 2018 22:23:52 +0100 Subject: [PATCH] Fix des bans --- users/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/views.py b/users/views.py index cc2f3181..b01d9cec 100644 --- a/users/views.py +++ b/users/views.py @@ -358,7 +358,7 @@ def add_ban(request, user, userid): request, "Attention, cet utilisateur a deja un bannissement actif" ) - return form({'userform': ban, 'action_name': 'Ajouter un ban'}, 'users/user.html', request) + return form({'userform': ban, 'action_name': 'Ajouter un ban'}, 'users/user.html', request) @login_required @can_edit(Ban) @@ -828,7 +828,7 @@ def process_passwd(request, req): reversion.set_comment("Réinitialisation du mot de passe") req.delete() messages.success(request, "Le mot de passe a changé") - return redirect(reverse('index')) + return redirect(reverse('index')) return form({'userform': u_form, 'action_name': 'Changer le mot de passe'}, 'users/user.html', request)