diff --git a/apps/orgs/caches.py b/apps/orgs/caches.py index 8f73dc06e..57a20bd3c 100644 --- a/apps/orgs/caches.py +++ b/apps/orgs/caches.py @@ -79,7 +79,7 @@ class OrgResourceStatisticsCache(OrgRelatedCache): def compute_users_amount(self): if self.org.is_root(): - users_amount = User.objects.all().count() + users_amount = User.objects.exclude(role='APP').count() else: users_amount = OrganizationMember.objects.values( 'user_id'