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

tweak for new election short name uniqueness

parent 6396fa9c
Branches
Tags
No related merge requests found
Subproject commit be4c4cc1ee7ef4230ae46a0ef09d785bb31719e9
Subproject commit 2005360e877a2e6a7e2d4580d9afcc981015ff04
......@@ -38,10 +38,7 @@ def home(request):
'use_voter_aliases': True
}
election = get_election()
if not election:
election = Election(key_name = election_params['short_name'], **election_params)
election.put()
election, created_p = Election.get_or_create(**election_params)
return render_template(request, "index")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment