Renamed the human_date filter to smart_date.
This commit is contained in:
1 parent
a315907a5a
commit
dc14f2e27a
2 files changed
+2
-2
No files matched your search
@@ -49,7 +49,7 @@ First written: 2020/7/1
|
||||
<tbody>
|
||||
{% for record in records %}
|
||||
<tr>
|
||||
<td>{{ record.transaction.date|human_date }}</td>
|
||||
<td>{{ record.transaction.date|smart_date }}</td>
|
||||
<td>{{ record.subject.title_zhtw }}</td>
|
||||
<td>{{ record.summary }}</td>
|
||||
<td>{{ record.debit_amount|intcomma:False }}</td>
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user