ajoute un tag True/False -> Oui/Non
This commit is contained in:
parent
6cd89da67c
commit
96195f1e81
1 changed files with 7 additions and 0 deletions
|
@ -34,3 +34,10 @@ def highlight_clipper(clipper, q):
|
||||||
else:
|
else:
|
||||||
text = clipper.username
|
text = clipper.username
|
||||||
return highlight_text(text, q)
|
return highlight_text(text, q)
|
||||||
|
|
||||||
|
@register.filter
|
||||||
|
def oui_ou_non(b):
|
||||||
|
if b:
|
||||||
|
return "Oui"
|
||||||
|
else:
|
||||||
|
return "Non"
|
||||||
|
|
Loading…
Reference in a new issue