A string.Template with a unicode template must be given unicode dictionary values if the values contain unicode codepoints. Providing values that are objects with __str__() methods, or utf-8 encoded strings doesn't work. Fixes an issue with nomcom template interpolation for nominees with non-ascii names.
- Legacy-Id: 15481
This commit is contained in:
parent
7ea8a3f431
commit
4f2f843a55
|
@ -237,7 +237,7 @@ def send_accept_reminder_to_nominee(nominee_position):
|
|||
today,
|
||||
hash))
|
||||
|
||||
context = {'nominee': nominee,
|
||||
context = {'nominee': nominee.person.name,
|
||||
'position': position,
|
||||
'domain': domain,
|
||||
'accept_url': accept_url,
|
||||
|
@ -260,7 +260,7 @@ def send_questionnaire_reminder_to_nominee(nominee_position):
|
|||
nominee = nominee_position.nominee
|
||||
(to_email,cc) = gather_address_lists('nomcom_questionnaire_reminder',nominee=nominee.email.address)
|
||||
|
||||
context = {'nominee': nominee,
|
||||
context = {'nominee': nominee.person.name,
|
||||
'position': position,
|
||||
'domain': domain,
|
||||
'year': nomcom.year(),
|
||||
|
|
Loading…
Reference in a new issue