Revised the documentation of the from_model method in TransactionForm in the accounting application.

This commit is contained in:
依瑪貓 2020-08-19 13:47:33 +08:00
parent 759e7262fb
commit 0e1a87184b

View File

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