ajoute un tag True/False -> Oui/Non

This commit is contained in:
ludo 2016-06-09 14:31:40 +02:00
parent 6cd89da67c
commit 96195f1e81

View file

@ -34,3 +34,10 @@ def highlight_clipper(clipper, q):
else:
text = clipper.username
return highlight_text(text, q)
@register.filter
def oui_ou_non(b):
if b:
return "Oui"
else:
return "Non"