Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
itminedu
synnefo
Commits
327f8cc0
Commit
327f8cc0
authored
Sep 22, 2016
by
Olga Brani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin: Format flatten_dict_to_dl in unicode
parent
9157a2da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
snf-admin-app/synnefo_admin/admin/templatetags/admin_tags.py
snf-admin-app/synnefo_admin/admin/templatetags/admin_tags.py
+1
-1
No files found.
snf-admin-app/synnefo_admin/admin/templatetags/admin_tags.py
View file @
327f8cc0
...
...
@@ -500,7 +500,7 @@ def flatten_dict_to_dl(d, default_if_empty='-'):
if
isinstance
(
v
,
dict
):
stack
.
extend
(
v
.
iteritems
())
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
)
return
mark_safe
(
''
.
join
(
reversed
(
l
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment