8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 22:52:26 +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 aa8088f9b2
commit e67080cb23

View file

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