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

fixed email templates

parent f052a17b
Branches
Tags
No related merge requests found
...@@ -1251,6 +1251,8 @@ def voters_email(request, election): ...@@ -1251,6 +1251,8 @@ def voters_email(request, election):
'custom_message': '<YOUR MESSAGE HERE>', 'custom_message': '<YOUR MESSAGE HERE>',
'voter': {'vote_hash' : '<SMART_TRACKER>', 'voter': {'vote_hash' : '<SMART_TRACKER>',
'name': '<VOTER_NAME>', 'name': '<VOTER_NAME>',
'voter_login_id': '<VOTER_LOGIN_ID>',
'voter_password': '<VOTER_PASSWORD>',
'voter_type' : election.voter_set.all()[0].voter_type, 'voter_type' : election.voter_set.all()[0].voter_type,
'election' : election} 'election' : election}
}) })
...@@ -1269,7 +1271,7 @@ def voters_email(request, election): ...@@ -1269,7 +1271,7 @@ def voters_email(request, election):
extra_vars = { extra_vars = {
'custom_subject' : email_form.cleaned_data['subject'], 'custom_subject' : email_form.cleaned_data['subject'],
'custom_message' : email_form.cleaned_data['body'], 'custom_message' : email_form.cleaned_data['body'],
'election_url' : election_url, 'election_vote_url' : election_vote_url,
'election' : election 'election' : election
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment