Commit e395bc33 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root
Browse files

Ajoute la personne qui a effetcué l'archivage

parent 5150eb05
...@@ -529,6 +529,7 @@ def mass_archive(request): ...@@ -529,6 +529,7 @@ def mass_archive(request):
with transaction.atomic(), reversion.create_revision(): with transaction.atomic(), reversion.create_revision():
user.state=User.STATE_ARCHIVE user.state=User.STATE_ARCHIVE
user.save() user.save()
reversion.set_user(request.user)
reversion.set_comment("Archivage") reversion.set_comment("Archivage")
messages.success(request, "%s users ont été archivés" % len(to_archive_list)) messages.success(request, "%s users ont été archivés" % len(to_archive_list))
return redirect("/users/") return redirect("/users/")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment