Commit 26e5a026 authored by Michal Čihař's avatar Michal Čihař

Better wrap function call

parent 8e86f3d8
......@@ -271,10 +271,12 @@ def admin_boolean_icon(val):
'''
icon_url = static('admin/img/icon-%s.gif' % TYPE_MAPPING[val]
)
return mark_safe(u'<img src="%(url)s" alt="%(text)s" title="%(text)s" />' % {
'url': icon_url,
'text': NAME_MAPPING[val],
})
return mark_safe(
u'<img src="%(url)s" alt="%(text)s" title="%(text)s" />' % {
'url': icon_url,
'text': NAME_MAPPING[val],
}
)
@register.inclusion_tag('message.html')
......
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