diff --git a/src/accounting/templates/accounting/transaction/income/include/form.html b/src/accounting/templates/accounting/transaction/income/include/form.html
index 285de6a..7761bb0 100644
--- a/src/accounting/templates/accounting/transaction/income/include/form.html
+++ b/src/accounting/templates/accounting/transaction/income/include/form.html
@@ -38,7 +38,7 @@ First written: 2023/2/25
{% else %}
{% with currency_index = 1,
only_one_currency_form = True,
- currency_code_data = accounting_txn_default_currency_code(),
+ currency_code_data = accounting_default_currency_code(),
credit_total = "-" %}
{% include "accounting/transaction/income/include/form-currency-item.html" %}
{% endwith %}
diff --git a/src/accounting/templates/accounting/transaction/transfer/include/form-currency-item.html b/src/accounting/templates/accounting/transaction/transfer/include/form-currency-item.html
index 9a8a04e..0278d76 100644
--- a/src/accounting/templates/accounting/transaction/transfer/include/form-currency-item.html
+++ b/src/accounting/templates/accounting/transaction/transfer/include/form-currency-item.html
@@ -25,7 +25,7 @@ First written: 2023/2/25
diff --git a/src/accounting/templates/accounting/transaction/transfer/include/form.html b/src/accounting/templates/accounting/transaction/transfer/include/form.html
index 3ce7a65..262dc8c 100644
--- a/src/accounting/templates/accounting/transaction/transfer/include/form.html
+++ b/src/accounting/templates/accounting/transaction/transfer/include/form.html
@@ -41,7 +41,7 @@ First written: 2023/2/25
{% else %}
{% with currency_index = 1,
only_one_currency_form = True,
- currency_code_data = accounting_txn_default_currency_code(),
+ currency_code_data = accounting_default_currency_code(),
debit_total = "-",
credit_total = "-" %}
{% include "accounting/transaction/transfer/include/form-currency-item.html" %}
diff --git a/src/accounting/transaction/dispatcher.py b/src/accounting/transaction/dispatcher.py
index 5b6621f..237ff53 100644
--- a/src/accounting/transaction/dispatcher.py
+++ b/src/accounting/transaction/dispatcher.py
@@ -26,7 +26,7 @@ from flask_wtf import FlaskForm
from accounting.models import Transaction
from .forms import TransactionForm, IncomeTransactionForm, \
ExpenseTransactionForm, TransferTransactionForm
-from .template_globals import default_currency_code
+from accounting.template_globals import default_currency_code
class TransactionType(ABC):
diff --git a/src/accounting/transaction/views.py b/src/accounting/transaction/views.py
index 5966334..27831a5 100644
--- a/src/accounting/transaction/views.py
+++ b/src/accounting/transaction/views.py
@@ -38,7 +38,6 @@ from .forms import sort_transactions_in, TransactionReorderForm
from .queries import get_transaction_query
from .template_filters import with_type, to_transfer, format_amount_input, \
text2html
-from .template_globals import currency_options, default_currency_code
bp: Blueprint = Blueprint("transaction", __name__)
"""The view blueprint for the transaction management."""
@@ -47,9 +46,6 @@ bp.add_app_template_filter(to_transfer, "accounting_txn_to_transfer")
bp.add_app_template_filter(format_amount_input,
"accounting_txn_format_amount_input")
bp.add_app_template_filter(text2html, "accounting_txn_text2html")
-bp.add_app_template_global(currency_options, "accounting_txn_currency_options")
-bp.add_app_template_global(default_currency_code,
- "accounting_txn_default_currency_code")
@bp.get("", endpoint="list")