Removed is_safe=True from the smart_date template filter.

This commit is contained in:
依瑪貓 2020-07-10 18:54:55 +08:00
parent f8d25412cb
commit 241445bc7a

View File

@ -28,7 +28,7 @@ from django.utils.translation import gettext
register = template.Library() register = template.Library()
@register.filter(is_safe=True) @register.filter
def smart_date(value): def smart_date(value):
"""Formats the date for human friendliness. """Formats the date for human friendliness.