Renamed the human_date filter to smart_date.

This commit is contained in:
imacat committed 2020-07-02 07:40:45 +08:00
1 parent a315907a5a
commit dc14f2e27a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ register = template.Library()
@register.filter(is_safe=True)
def human_date(value):
def smart_date(value):
"""Formats the date for human friendliness.
Args: