From 2af34f40e028f4f3b8623dfc0c886483ad83d2b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 18 Aug 2020 23:23:16 +0800 Subject: [PATCH] Added the missing record sorting to the make_form_from_post() method of the transaction form view in the accounting application. --- accounting/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/accounting/views.py b/accounting/views.py index 96f396f..67fb27e 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -823,6 +823,7 @@ class TransactionFormView(FormView): def make_form_from_post(self, post: Dict[str, str]) -> TransactionForm: """Creates and returns the form from the POST data.""" + utils.sort_post_txn_records(post) form = TransactionForm(post) form.txn_type = self.txn_type form.transaction = self.object