From 0fabd9cc6c255155e5106cdc12e87fefb08a6fc4 Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Sun, 26 Jun 2011 13:01:10 -0700 Subject: [PATCH] code to improve eligibility setting --- helios/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helios/models.py b/helios/models.py index 77921cc..fa967c8 100644 --- a/helios/models.py +++ b/helios/models.py @@ -404,6 +404,10 @@ class Election(HeliosModel): if self.eligibility != None: return + # enable this ONLY once the cast_confirm screen makes sense + #if self.voter_set.count() == 0: + # return + auth_systems = copy.copy(settings.AUTH_ENABLED_AUTH_SYSTEMS) voter_types = [r['user__user_type'] for r in self.voter_set.values('user__user_type').distinct() if r['user__user_type'] != None] -- GitLab