From bd47146551e8c243beaf3c429b47336600321bba Mon Sep 17 00:00:00 2001 From: Yasin Date: Mon, 28 Apr 2014 11:45:32 +0200 Subject: [PATCH] Validation:show only those users who verified their email --- portal/actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/portal/actions.py b/portal/actions.py index b9a07378..648ae57b 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -252,7 +252,8 @@ def get_request_by_id(ids): def get_requests(authority_hrns=None): print "get_request_by_authority auth_hrns = ", authority_hrns if not authority_hrns: - pending_users = PendingUser.objects.all() + ## get those pending users who have validated their emails + pending_users = PendingUser.objects.filter(status__iexact = 'True') pending_slices = PendingSlice.objects.all() pending_authorities = PendingAuthority.objects.all() else: -- 2.43.0