diff --git a/preferences/templatetags/design.py b/preferences/templatetags/design.py
index 5e18572f..87a0e0f8 100644
--- a/preferences/templatetags/design.py
+++ b/preferences/templatetags/design.py
@@ -28,14 +28,12 @@ register = template.Library()
@register.filter(needs_autoescape=False)
def tick(valeur, autoescape=False):
- if autoescape:
- esc = conditional_escape
- else:
- esc = lambda x: x
+ if isinstance(valeur,bool):
+ if valeur == True:
+ result = ''
+ else:
+ result = ''
+ return mark_safe(result)
- if valeur == True:
- result = ''
- else:
- result = ''
-
- return mark_safe(result)
+ else: # if the value is not a boolean, display it as if tick was not called
+ return valeur