From 17a10c3cdb009ede389fc5b8d9aaef8f87dc0a10 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Fri, 18 Aug 2017 14:22:56 +0200 Subject: [PATCH] iTypoS --- users/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/views.py b/users/views.py index 9d3a4d29..26359349 100644 --- a/users/views.py +++ b/users/views.py @@ -513,7 +513,7 @@ def mass_archive(request): to_archive_list = [] if to_archive_date.is_valid(): date = to_archive_date.cleaned_data['date'] - to_archive_list = [user for user in User.objects.exclude(state=User.STATE_ARCHIVE) if not user.end_access or user.end_access < date] + to_archive_list = [user for user in User.objects.exclude(state=User.STATE_ARCHIVE) if not user.end_access() or user.end_access() < date] if "valider" in request.POST: for user in to_archive_list: with transaction.atomic(), reversion.create_revision():