X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/5cd8854a55b8f4e8145f06c46ec8e7332dfb5af9..6ebde88b50458c1ba0d81d42ab3bc59e131537b1:/forum/skins/default/templates/notifications/answeraccepted.html diff --git a/forum/skins/default/templates/notifications/answeraccepted.html b/forum/skins/default/templates/notifications/answeraccepted.html index 7658087..5157bd0 100644 --- a/forum/skins/default/templates/notifications/answeraccepted.html +++ b/forum/skins/default/templates/notifications/answeraccepted.html @@ -1,11 +1,11 @@ {% load i18n extra_tags email_tags %} {% declare %} - prefix = html.mark_safe(settings.EMAIL_SUBJECT_PREFIX) - answer_author = html.mark_safe(answer.author.username) + prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX)) + answer_author = html.mark_safe(smart_str(answer.author.username)) question = answer.question - question_title = html.mark_safe(question.title) - accepted_by = html.mark_safe(answer.nstate.accepted.by.username) + question_title = html.mark_safe(smart_str(question.title)) + accepted_by = html.mark_safe(smart_str(answer.nstate.accepted.by.username)) accepted_by_link = html.objlink(answer.nstate.accepted.by, style=settings.EMAIL_ANCHOR_STYLE) answer_author_link = html.objlink(answer.author, style=settings.EMAIL_ANCHOR_STYLE) question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)