From 1d443f7b767ee7e18230c10b3c2285a59687bd4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 10 Mar 2023 09:13:47 +0800 Subject: [PATCH] Renamed the "accounting.transaction.form" module to "accounting.transaction.forms". It only contains forms now. --- src/accounting/transaction/{form => forms}/__init__.py | 0 src/accounting/transaction/{form => forms}/currency.py | 0 src/accounting/transaction/{form => forms}/journal_entry.py | 0 src/accounting/transaction/{form => forms}/reorder.py | 0 src/accounting/transaction/{form => forms}/transaction.py | 0 src/accounting/transaction/utils/operators.py | 4 ++-- src/accounting/transaction/views.py | 2 +- 7 files changed, 3 insertions(+), 3 deletions(-) rename src/accounting/transaction/{form => forms}/__init__.py (100%) rename src/accounting/transaction/{form => forms}/currency.py (100%) rename src/accounting/transaction/{form => forms}/journal_entry.py (100%) rename src/accounting/transaction/{form => forms}/reorder.py (100%) rename src/accounting/transaction/{form => forms}/transaction.py (100%) diff --git a/src/accounting/transaction/form/__init__.py b/src/accounting/transaction/forms/__init__.py similarity index 100% rename from src/accounting/transaction/form/__init__.py rename to src/accounting/transaction/forms/__init__.py diff --git a/src/accounting/transaction/form/currency.py b/src/accounting/transaction/forms/currency.py similarity index 100% rename from src/accounting/transaction/form/currency.py rename to src/accounting/transaction/forms/currency.py diff --git a/src/accounting/transaction/form/journal_entry.py b/src/accounting/transaction/forms/journal_entry.py similarity index 100% rename from src/accounting/transaction/form/journal_entry.py rename to src/accounting/transaction/forms/journal_entry.py diff --git a/src/accounting/transaction/form/reorder.py b/src/accounting/transaction/forms/reorder.py similarity index 100% rename from src/accounting/transaction/form/reorder.py rename to src/accounting/transaction/forms/reorder.py diff --git a/src/accounting/transaction/form/transaction.py b/src/accounting/transaction/forms/transaction.py similarity index 100% rename from src/accounting/transaction/form/transaction.py rename to src/accounting/transaction/forms/transaction.py diff --git a/src/accounting/transaction/utils/operators.py b/src/accounting/transaction/utils/operators.py index f8a1678..9a2d154 100644 --- a/src/accounting/transaction/utils/operators.py +++ b/src/accounting/transaction/utils/operators.py @@ -26,8 +26,8 @@ from flask_wtf import FlaskForm from accounting.models import Transaction from accounting.template_globals import default_currency_code from accounting.utils.txn_types import TransactionType -from accounting.transaction.form import TransactionForm, IncomeTransactionForm, \ - ExpenseTransactionForm, TransferTransactionForm +from accounting.transaction.forms import TransactionForm, \ + IncomeTransactionForm, ExpenseTransactionForm, TransferTransactionForm class TransactionOperator(ABC): diff --git a/src/accounting/transaction/views.py b/src/accounting/transaction/views.py index acf9547..ca38ece 100644 --- a/src/accounting/transaction/views.py +++ b/src/accounting/transaction/views.py @@ -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.txn_types import TransactionType 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, \ text2html from .utils.operators import TransactionOperator, TXN_TYPE_TO_OP, get_txn_op