From 246987955b02fbc5c41e599ddbc0da7748e262c4 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 2 Dec 2018 19:12:21 +0100 Subject: [PATCH] Accept localized input for all fields with localized output --- src/pretix/helpers/money.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pretix/helpers/money.py b/src/pretix/helpers/money.py index 4845300ba..d1c8287c3 100644 --- a/src/pretix/helpers/money.py +++ b/src/pretix/helpers/money.py @@ -25,6 +25,7 @@ class DecimalTextInput(TextInput): def change_decimal_field(field, currency): places = settings.CURRENCY_PLACES.get(currency, 2) field.decimal_places = places + field.localize = True if isinstance(field.widget, NumberInput): field.widget.attrs['step'] = str(Decimal('1') / 10 ** places).lower() elif isinstance(field.widget, TextInput):