Commit 327f8cc0 authored by Olga Brani's avatar Olga Brani

admin: Format flatten_dict_to_dl in unicode

parent 9157a2da
...@@ -500,7 +500,7 @@ def flatten_dict_to_dl(d, default_if_empty='-'): ...@@ -500,7 +500,7 @@ def flatten_dict_to_dl(d, default_if_empty='-'):
if isinstance(v, dict): if isinstance(v, dict):
stack.extend(v.iteritems()) stack.extend(v.iteritems())
else: else:
a = '<dt>{0}</dt><dd>{1}</dd>'.format(k, v or default_if_empty) a = u'<dt>{0}</dt><dd>{1}</dd>'.format(k, v or default_if_empty)
l.append(a) l.append(a)
return mark_safe(''.join(reversed(l))) return mark_safe(''.join(reversed(l)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment