From 241445bc7a04bf2cd52a88e62f074a89d8604186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 10 Jul 2020 18:54:55 +0800 Subject: [PATCH] Removed is_safe=True from the smart_date template filter. --- mia_core/templatefilters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mia_core/templatefilters.py b/mia_core/templatefilters.py index 0a960d3..31d257a 100644 --- a/mia_core/templatefilters.py +++ b/mia_core/templatefilters.py @@ -28,7 +28,7 @@ from django.utils.translation import gettext register = template.Library() -@register.filter(is_safe=True) +@register.filter def smart_date(value): """Formats the date for human friendliness.