fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8384410
)
fix publishing suggest form
author
Jan Szejko
<janek37@gmail.com>
Thu, 22 Sep 2016 13:29:13 +0000
(15:29 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Thu, 22 Sep 2016 13:29:13 +0000
(15:29 +0200)
src/ajaxable/templatetags/ajaxable_tags.py
patch
|
blob
|
history
diff --git
a/src/ajaxable/templatetags/ajaxable_tags.py
b/src/ajaxable/templatetags/ajaxable_tags.py
index
72b9baa
..
55059e5
100644
(file)
--- 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': f
ield.label
,
- 'helptext': f
ield.help_text
,
+ 'label': f
orce_unicode(field.label)
,
+ 'helptext': f
orce_unicode(field.help_text)
,
})