fix |truefalseicon filter

This commit is contained in:
Thomas Steen Rasmussen 2016-05-29 15:35:14 +02:00
parent 9e66a9c4c6
commit 21b1e2156f

View file

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