diff --git a/helios/tasks.py b/helios/tasks.py index a1079c1d33c321747d05d5d8b317015f7c928ba1..4aa1de432961ec1a51546c6ebd38baa52ce1aca9 100644 --- a/helios/tasks.py +++ b/helios/tasks.py @@ -65,6 +65,7 @@ def single_voter_email(voter_uuid, subject_template, body_template, extra_vars={ voter = Voter.objects.get(uuid=voter_uuid) the_vars = copy.copy(extra_vars) + the_vars.update({'election': voter.election}) the_vars.update({'voter': voter}) subject = render_template_raw(None, subject_template, the_vars)