mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 01:16:27 +00:00
Ajoute la personne qui a effetcué l'archivage
This commit is contained in:
parent
5150eb05df
commit
e395bc33bd
1 changed files with 1 additions and 0 deletions
|
@ -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/")
|
||||
|
|
Loading…
Reference in a new issue