From 2d6ced7a340a86e610e9066e699ec1c05c6b2f3f Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Thu, 22 Sep 2016 15:29:13 +0200 Subject: [PATCH] fix publishing suggest form --- src/ajaxable/templatetags/ajaxable_tags.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ajaxable/templatetags/ajaxable_tags.py b/src/ajaxable/templatetags/ajaxable_tags.py index 72b9baad4..55059e55b 100644 --- a/src/ajaxable/templatetags/ajaxable_tags.py +++ b/src/ajaxable/templatetags/ajaxable_tags.py @@ -3,6 +3,7 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django import template +from django.utils.encoding import force_unicode from django.utils.safestring import mark_safe from ajaxable.utils import placeholdized @@ -31,8 +32,8 @@ def pretty_field(field, template=None): return mark_safe(template % { 'errors': field.errors, 'input': field, - 'label': field.label, - 'helptext': field.help_text, + 'label': force_unicode(field.label), + 'helptext': force_unicode(field.help_text), }) -- 2.20.1