From 494950ac654e861d3bc859c942427a8d26fc8012 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 14 Sep 2020 23:19:16 +0200 Subject: [PATCH] admin: fix anonymous user not being removed from user count --- passbook/admin/views/overview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/admin/views/overview.py b/passbook/admin/views/overview.py index 3092e9320..92439ff1a 100644 --- a/passbook/admin/views/overview.py +++ b/passbook/admin/views/overview.py @@ -45,7 +45,7 @@ class AdministrationOverviewView(AdminRequiredMixin, TemplateView): def get_context_data(self, **kwargs): kwargs["application_count"] = len(Application.objects.all()) kwargs["policy_count"] = len(Policy.objects.all()) - kwargs["user_count"] = len(User.objects.all()) + kwargs["user_count"] = len(User.objects.all()) - 1 # Remove anonymous user kwargs["provider_count"] = len(Provider.objects.all()) kwargs["source_count"] = len(Source.objects.all()) kwargs["stage_count"] = len(Stage.objects.all())