Skip to content

Commit 4f2f843

Browse files
committed
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
1 parent 7ea8a3f commit 4f2f843

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/nomcom/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def send_accept_reminder_to_nominee(nominee_position):
237237
today,
238238
hash))
239239

240-
context = {'nominee': nominee,
240+
context = {'nominee': nominee.person.name,
241241
'position': position,
242242
'domain': domain,
243243
'accept_url': accept_url,
@@ -260,7 +260,7 @@ def send_questionnaire_reminder_to_nominee(nominee_position):
260260
nominee = nominee_position.nominee
261261
(to_email,cc) = gather_address_lists('nomcom_questionnaire_reminder',nominee=nominee.email.address)
262262

263-
context = {'nominee': nominee,
263+
context = {'nominee': nominee.person.name,
264264
'position': position,
265265
'domain': domain,
266266
'year': nomcom.year(),

0 commit comments

Comments
 (0)