mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-30 08:32:26 +00:00
Ajoute la personne qui a effetcué l'archivage
This commit is contained in:
parent
aa8088f9b2
commit
e67080cb23
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