do not use django template code here

This commit is contained in:
Thomas Steen Rasmussen 2016-05-29 15:25:49 +02:00
parent ef53a8149b
commit 9e66a9c4c6

View file

@ -12,7 +12,7 @@ def currency(value):
@register.filter()
def truefalseicon(value):
if value:
return mark_safe("<span class='text-success'>{% bootstrap_icon 'ok' %}</span>")
return mark_safe("<span class='text-success glyphicon glyphicon-th-ok'></span>")
else:
return mark_safe("<span class='text-danger'>{% bootstrap_icon 'remove' %}</span>")
return mark_safe("<span class='text-success glyphicon glyphicon-th-remove'></span>")