From f26b303205b51b8bffdc0ee5691e0223fbbe8261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 9 Aug 2020 18:03:16 +0800 Subject: [PATCH] Changed the url_with_return and url_keep_return template tags so that they work with URL instead of view names and parameters, not to mess up with the built-in url template tag in the Mia core application. --- .../templates/accounting/account_detail.html | 4 ++-- .../templates/accounting/balance-sheet.html | 6 ++--- .../templates/accounting/cash-summary.html | 6 ++--- accounting/templates/accounting/cash.html | 10 ++++----- .../accounting/income-statement.html | 6 ++--- accounting/templates/accounting/journal.html | 10 ++++----- .../templates/accounting/ledger-summary.html | 6 ++--- accounting/templates/accounting/ledger.html | 10 ++++----- accounting/templates/accounting/search.html | 10 ++++----- .../accounting/transaction-sort.html | 4 ++-- .../transaction_detail-expense.html | 12 +++++----- .../accounting/transaction_detail-income.html | 12 +++++----- .../transaction_detail-transfer.html | 8 +++---- .../accounting/transaction_form-expense.html | 4 ++-- .../accounting/transaction_form-income.html | 4 ++-- .../accounting/transaction_form-transfer.html | 4 ++-- .../templates/accounting/trial-balance.html | 6 ++--- mia_core/templatetags/mia_core.py | 22 +++++++++---------- 18 files changed, 71 insertions(+), 73 deletions(-) diff --git a/accounting/templates/accounting/account_detail.html b/accounting/templates/accounting/account_detail.html index a0e10f9..90fcc17 100644 --- a/accounting/templates/accounting/account_detail.html +++ b/accounting/templates/accounting/account_detail.html @@ -39,7 +39,7 @@ First written: 2020/8/8 {% endif %} -
+ {% csrf_token %}