From 0e1a87184bcbe21b1f7553ea253b8730f9392aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 19 Aug 2020 13:47:33 +0800 Subject: [PATCH] Revised the documentation of the from_model method in TransactionForm in the accounting application. --- accounting/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounting/forms.py b/accounting/forms.py index 4ee1d0a..722e40e 100644 --- a/accounting/forms.py +++ b/accounting/forms.py @@ -308,11 +308,11 @@ class TransactionForm(forms.Form): @staticmethod def from_model(txn: Transaction, txn_type: str): - """Converts a transaction data model to a transaction form. + """Constructs a transaction form from the transaction data model. Args: - txn_type: The transaction type. txn: The transaction data model. + txn_type: The transaction type. Returns: The transaction form.