From: Yasin Date: Mon, 28 Apr 2014 09:45:32 +0000 (+0200) Subject: Validation:show only those users who verified their email X-Git-Tag: myslice-1.1~128 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bd47146551e8c243beaf3c429b47336600321bba;p=myslice.git Validation:show only those users who verified their email --- 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: