fix |truefalseicon filter
This commit is contained in:
parent
9e66a9c4c6
commit
21b1e2156f
|
@ -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>")
|
||||
|
||||
|
|
Loading…
Reference in a new issue