From e8f18fcde30d10bf413cdec277bc9448f09310db Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Fri, 8 Oct 2010 19:03:28 -0700 Subject: [PATCH] fixed bug in freezing an election where passwords was never an auth system --- helios/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helios/models.py b/helios/models.py index bb533db..d0625ad 100644 --- a/helios/models.py +++ b/helios/models.py @@ -299,7 +299,7 @@ class Election(models.Model, electionalgs.Election): voter_types = [r['voter_type'] for r in self.voter_set.values('voter_type').distinct()] if self.openreg: - if not 'password' in voter_types: + if not 'password' in voter_types and 'password' in auth_systems: auth_systems.remove('password') else: auth_systems = [vt for vt in voter_types if vt in auth_systems] -- GitLab