From 17f9045b741321739fe2ae1976abcd26dd75a187 Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Wed, 5 Jul 2023 22:20:13 +0200 Subject: [PATCH] Use euros instead of dollars --- CTOAsYouGo/core/templatetags/currency_filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTOAsYouGo/core/templatetags/currency_filters.py b/CTOAsYouGo/core/templatetags/currency_filters.py index e6a3b32..ed9284e 100644 --- a/CTOAsYouGo/core/templatetags/currency_filters.py +++ b/CTOAsYouGo/core/templatetags/currency_filters.py @@ -5,6 +5,6 @@ register = template.Library() @register.filter def cents_to_dollars(value): try: - return "${:.2f}".format(int(value) / 100) + return "€ {:.2f}".format(int(value) / 100) except (ValueError, TypeError): return ''