8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 20:03:11 +00:00

Ajoute la personne qui a effetcué l'archivage

This commit is contained in:
Gabriel Detraz 2017-07-17 23:46:08 +02:00 committed by root
parent 5150eb05df
commit e395bc33bd

View file

@ -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/")