From ad0eb6e73e890b9f43940f727ac323b9f5ce84f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 8 Jul 2020 07:40:50 +0800 Subject: [PATCH] Renamed the template variable from period_parser to period. --- accounting/templates/accounting/cash.html | 2 +- accounting/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accounting/templates/accounting/cash.html b/accounting/templates/accounting/cash.html index 69e45e0..ab3e707 100644 --- a/accounting/templates/accounting/cash.html +++ b/accounting/templates/accounting/cash.html @@ -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 %} diff --git a/accounting/views.py b/accounting/views.py index 9dd17bc..fd39d8b 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -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