Renamed the template variable from period_parser to period.
This commit is contained in:
parent
76df32a76d
commit
ad0eb6e73e
@ -25,7 +25,7 @@ First written: 2020/7/1
|
|||||||
|
|
||||||
{% block settings %}
|
{% block settings %}
|
||||||
{% trans "Cash Account for {} in {}" context "Accounting|" as title_format %}
|
{% 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 %}
|
{% setvar "title" title %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ class BaseReportView(generic.ListView):
|
|||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
data = super(BaseReportView, self).get_context_data(**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
|
data["pagination_links"] = self.pagination.links
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user