mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 23:43:47 +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():
|
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/")
|
||||||
|
|
Loading…
Reference in a new issue