From e67080cb23525b581b546ce0e3c80a427b22c5c7 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Mon, 17 Jul 2017 23:46:08 +0200 Subject: [PATCH] =?UTF-8?q?Ajoute=20la=20personne=20qui=20a=20effetcu?= =?UTF-8?q?=C3=A9=20l'archivage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/users/views.py b/users/views.py index d11c63f3..0a4fc3fb 100644 --- a/users/views.py +++ b/users/views.py @@ -529,6 +529,7 @@ def mass_archive(request): with transaction.atomic(), reversion.create_revision(): user.state=User.STATE_ARCHIVE user.save() + reversion.set_user(request.user) reversion.set_comment("Archivage") messages.success(request, "%s users ont été archivés" % len(to_archive_list)) return redirect("/users/")