Renamed the template variable from period_parser to period.

This commit is contained in:
依瑪貓 2020-07-08 07:40:50 +08:00
parent 76df32a76d
commit ad0eb6e73e
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ First written: 2020/7/1
{% block settings %}
{% trans "Cash Account for {} in {}" context "Accounting|" as title_format %}
{% format title_format "庫存現金" period_parser.description as title %}
{% format title_format "庫存現金" period.description as title %}
{% setvar "title" title %}
{% endblock %}

View File

@ -125,7 +125,7 @@ class BaseReportView(generic.ListView):
def get_context_data(self, **kwargs):
data = super(BaseReportView, self).get_context_data(**kwargs)
data["period_parser"] = self.period_parser
data["period"] = self.period_parser
data["pagination_links"] = self.pagination.links
return data