Renamed the "accounting.transaction.form" module to "accounting.transaction.forms". It only contains forms now.

This commit is contained in:
依瑪貓 2023-03-10 09:13:47 +08:00
parent 6ad4fba9cd
commit 1d443f7b76
7 changed files with 3 additions and 3 deletions

View File

@ -26,8 +26,8 @@ from flask_wtf import FlaskForm
from accounting.models import Transaction from accounting.models import Transaction
from accounting.template_globals import default_currency_code from accounting.template_globals import default_currency_code
from accounting.utils.txn_types import TransactionType from accounting.utils.txn_types import TransactionType
from accounting.transaction.form import TransactionForm, IncomeTransactionForm, \ from accounting.transaction.forms import TransactionForm, \
ExpenseTransactionForm, TransferTransactionForm IncomeTransactionForm, ExpenseTransactionForm, TransferTransactionForm
class TransactionOperator(ABC): class TransactionOperator(ABC):

View File

@ -33,7 +33,7 @@ from accounting.utils.next_uri import inherit_next, or_next
from accounting.utils.permission import has_permission, can_view, can_edit from accounting.utils.permission import has_permission, can_view, can_edit
from accounting.utils.txn_types import TransactionType from accounting.utils.txn_types import TransactionType
from accounting.utils.user import get_current_user_pk from accounting.utils.user import get_current_user_pk
from .form import sort_transactions_in, TransactionReorderForm from .forms import sort_transactions_in, TransactionReorderForm
from .template_filters import with_type, to_transfer, format_amount_input, \ from .template_filters import with_type, to_transfer, format_amount_input, \
text2html text2html
from .utils.operators import TransactionOperator, TXN_TYPE_TO_OP, get_txn_op from .utils.operators import TransactionOperator, TXN_TYPE_TO_OP, get_txn_op