From d190c35754aa732c1cc5154b58979c68cc003749 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 13:32:33 +0800 Subject: [PATCH] Fixed and replaced Record with RecordForm in the context of the dummy new record template in the txn_form view in the accounting application. --- accounting/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounting/views.py b/accounting/views.py index 068dd80..4569e43 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -834,7 +834,7 @@ def txn_form(request, txn_type, txn=None): form.credit_records.append(RecordForm()) else: form = make_txn_form_from_model(txn_type, txn) - new_record_context = {"record": Record(), + new_record_context = {"record": RecordForm(), "record_type": "TTT", "no": "NNN", "order": ""}