diff --git a/src/accounting/templates/accounting/option/detail.html b/src/accounting/templates/accounting/option/detail.html
index e8f7db5..f73b986 100644
--- a/src/accounting/templates/accounting/option/detail.html
+++ b/src/accounting/templates/accounting/option/detail.html
@@ -42,7 +42,7 @@ First written: 2023/3/22
{{ A_("Default Currency") }} |
- {{ obj.default_currency_text }} |
+ {{ obj.default_currency }} |
{{ A_("Default Account for the Income and Expenses Log") }} |
diff --git a/src/accounting/utils/options.py b/src/accounting/utils/options.py
index b165594..d2c60ea 100644
--- a/src/accounting/utils/options.py
+++ b/src/accounting/utils/options.py
@@ -99,12 +99,12 @@ class Options:
self.__set_option("default_currency_code", value)
@property
- def default_currency_text(self) -> str:
+ def default_currency(self) -> Currency:
"""Returns the text of the default currency code.
:return: The text of the default currency code.
"""
- return str(db.session.get(Currency, self.default_currency_code))
+ return db.session.get(Currency, self.default_currency_code)
@property
def default_ie_account_code(self) -> str: