Skip to content
Snippets Groups Projects
Commit 7036d553 authored by Edmar Martineli's avatar Edmar Martineli Committed by Ben Adida
Browse files

The election object was not provided when the email is sent

parent 05a27888
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,7 @@ def single_voter_email(voter_uuid, subject_template, body_template, extra_vars={ ...@@ -65,6 +65,7 @@ def single_voter_email(voter_uuid, subject_template, body_template, extra_vars={
voter = Voter.objects.get(uuid=voter_uuid) voter = Voter.objects.get(uuid=voter_uuid)
the_vars = copy.copy(extra_vars) the_vars = copy.copy(extra_vars)
the_vars.update({'election': voter.election})
the_vars.update({'voter': voter}) the_vars.update({'voter': voter})
subject = render_template_raw(None, subject_template, the_vars) subject = render_template_raw(None, subject_template, the_vars)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment