Added PeriodConverter to convert a period specification to a period, and applied it in the URL patterns.
This commit is contained in:
1 parent
01dbd7e60b
commit
f9a9a99246
9 files changed
+79
-62
No files matched your search
@@ -72,7 +72,7 @@ First written: 2020/7/16
|
||||
</button>
|
||||
<div class="dropdown-menu account-picker">
|
||||
{% for account in accounts %}
|
||||
<a class="dropdown-item {% if account.code == current_account.code %} active {% endif %}" href="{% url "accounting:ledger" account.code period.spec %}">
|
||||
<a class="dropdown-item {% if account.code == current_account.code %} active {% endif %}" href="{% url "accounting:ledger" account.code period %}">
|
||||
{{ account.code }} {{ account.title|title }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
Reference in new issue
Block a user