If the author of a nomcom nomination is unknown, use 'Anonymous' and no email address in outgoing messages, instead of ''.

- Legacy-Id: 9627
This commit is contained in:
Henrik Levkowetz 2015-05-13 16:55:53 +00:00
parent b55954295d
commit 8905ac1789

View file

@ -363,6 +363,10 @@ def get_or_create_nominee(nomcom, candidate_name, candidate_email, position, aut
if author:
context.update({'nominator': author.person.name,
'nominator_email': author.address})
else:
context.update({'nominator': 'Anonymous',
'nominator_email': ''})
path = nomcom_template_path + NOMINATION_EMAIL_TEMPLATE
send_mail(None, to_email, from_email, subject, path, context)