From a0338bbf23551fdb28b49f44a968d99232828084 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 18 May 2010 11:28:42 +0100 Subject: [PATCH] Don't show services marked as inactive --- sso/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sso/forms.py b/sso/forms.py index 13a6825..e1e390a 100644 --- a/sso/forms.py +++ b/sso/forms.py @@ -33,7 +33,7 @@ class EveAPIForm(forms.Form): def UserServiceAccountForm(user): """ Generate a Service Account form based on the user's permissions """ - services = Service.objects.filter(groups__in=user.groups.all()).exclude(id__in=ServiceAccount.objects.filter(user=user).values('service')).distinct() + services = Service.objects.filter(groups__in=user.groups.all(),active=1).exclude(id__in=ServiceAccount.objects.filter(user=user).values('service')).distinct() chars = EVEPlayerCharacter.objects.filter(eveaccount__user=user) print len(services)