From 5bf8b42a833f3cf27ec9d30505d7265600d26376 Mon Sep 17 00:00:00 2001 From: detraz Date: Sat, 8 Sep 2018 21:09:17 +0200 Subject: [PATCH] =?UTF-8?q?Not=20yet=20member,=20possibilit=C3=A9=20de=20t?= =?UTF-8?q?rouver=20les=20users=20pas=20encore=20adh=C3=A9rents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logs/views.py | 8 ++++++++ search/forms.py | 1 + 2 files changed, 9 insertions(+) diff --git a/logs/views.py b/logs/views.py index a9fe5418..21e3c470 100644 --- a/logs/views.py +++ b/logs/views.py @@ -254,6 +254,14 @@ def stats_general(request): .count()), Club.objects.filter(state=Club.STATE_ARCHIVE).count() ], + 'not_active_users': [ + _("Not yet active users"), + User.objects.filter(state=User.STATE_NOT_YET_ACTIVE).count(), + (Adherent.objects + .filter(state=Adherent.STATE_NOT_YET_ACTIVE) + .count()), + Club.objects.filter(state=Club.STATE_NOT_YET_ACTIVE).count() + ], 'adherent_users': [ _("Contributing members"), _all_adherent.count(), diff --git a/search/forms.py b/search/forms.py index 6065e799..5c98415f 100644 --- a/search/forms.py +++ b/search/forms.py @@ -33,6 +33,7 @@ CHOICES_USER = ( ('0', _("Active")), ('1', _("Disabled")), ('2', _("Archived")), + ('3', _("Not Yet Active")), ) CHOICES_AFF = (