Revised the documentation of the from_model method in TransactionForm in the accounting application.
This commit is contained in:
parent
759e7262fb
commit
0e1a87184b
@ -308,11 +308,11 @@ class TransactionForm(forms.Form):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_model(txn: Transaction, txn_type: str):
|
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:
|
Args:
|
||||||
txn_type: The transaction type.
|
|
||||||
txn: The transaction data model.
|
txn: The transaction data model.
|
||||||
|
txn_type: The transaction type.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The transaction form.
|
The transaction form.
|
||||||
|
Loading…
Reference in New Issue
Block a user