From 4f2f843a552ba65fc27e2e5e183dd40cd81fe3f5 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 24 Sep 2018 21:25:20 +0000 Subject: [PATCH] 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 --- ietf/nomcom/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/nomcom/utils.py b/ietf/nomcom/utils.py index c51360e1e..9d01b5351 100644 --- a/ietf/nomcom/utils.py +++ b/ietf/nomcom/utils.py @@ -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(),