Skip to content
Snippets Groups Projects
Commit 93651392 authored by jan.bednarik's avatar jan.bednarik
Browse files

Fix python 3 incompatibility

parent 64119113
No related branches found
No related tags found
No related merge requests found
...@@ -496,7 +496,7 @@ class Election(HeliosModel): ...@@ -496,7 +496,7 @@ class Election(HeliosModel):
for eligibility_case in self.eligibility: for eligibility_case in self.eligibility:
auth_system = eligibility_case['auth_system'] auth_system = eligibility_case['auth_system']
if not eligibility_case.has_key('constraint'): if not 'constraint' in eligibility_case:
total_load = False total_load = False
else: else:
if hasattr(AUTH_SYSTEMS[auth_system], 'can_list_category_members'): if hasattr(AUTH_SYSTEMS[auth_system], 'can_list_category_members'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment