Apply suggestion from @pajowu

Co-authored-by: pajowu <engelhardt@pretix.eu>
This commit is contained in:
Raphael Michel
2026-09-17 09:45:38 +02:00
committed by GitHub
co-authored by pajowu
parent f51dd5214c
commit f2ef193c7e
+1 -1
View File
@@ -36,7 +36,7 @@ register = template.Library()
@register.filter("money")
def money_filter(value: Decimal, arg='', hide_currency=False):
if isinstance(value, (float, int)):
if isinstance(value, (float, int, str)):
value = Decimal(value)
if value is None:
value = Decimal('0.00')