Skip to content
Snippets Groups Projects
Commit 0fabd9cc authored by Ben Adida's avatar Ben Adida
Browse files

code to improve eligibility setting

parent 5710395f
Branches
No related tags found
No related merge requests found
...@@ -404,6 +404,10 @@ class Election(HeliosModel): ...@@ -404,6 +404,10 @@ class Election(HeliosModel):
if self.eligibility != None: if self.eligibility != None:
return 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) 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] voter_types = [r['user__user_type'] for r in self.voter_set.values('user__user_type').distinct() if r['user__user_type'] != None]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment