From a9c29a6f34a09658a242446e133b4784d16733fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 12 Aug 2020 21:41:15 +0800 Subject: [PATCH] Simplified the context of the new record template in the view of the trasaction forms in the accounting application. --- accounting/views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/accounting/views.py b/accounting/views.py index 205ccf6..c8c532c 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -829,10 +829,8 @@ def txn_form(request, txn_type, txn=None): form = TransactionForm() form.transaction = txn form.txn_type = txn_type - new_record_context = {"record": RecordForm(), - "record_type": "TTT", - "no": "NNN", - "order": ""} + new_record_context = {"record_type": "TTT", + "no": "NNN"} if txn_type == "transfer": new_record_template = json.dumps(render_to_string( "accounting/include/record_form-transfer.html",