Added the missing record sorting to the make_form_from_post() method of the transaction form view in the accounting application.

This commit is contained in:
依瑪貓 2020-08-18 23:23:16 +08:00
parent dddc27402e
commit 2af34f40e0

View File

@ -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