forked from DGNum/gestioCOF
Ajout d'un tag qui transforme un booléen (True/False) en son équivalent français (Oui/Non) pour plus de lisibilité
This commit is contained in:
parent
b1c8abcc3c
commit
7cd015dce8
1 changed files with 7 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue