do not use django template code here
This commit is contained in:
parent
ef53a8149b
commit
9e66a9c4c6
|
@ -12,7 +12,7 @@ def currency(value):
|
||||||
@register.filter()
|
@register.filter()
|
||||||
def truefalseicon(value):
|
def truefalseicon(value):
|
||||||
if 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:
|
else:
|
||||||
return mark_safe("<span class='text-danger'>{% bootstrap_icon 'remove' %}</span>")
|
return mark_safe("<span class='text-success glyphicon glyphicon-th-remove'></span>")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue