diff options
| author | Raphael Michel <mail@raphaelmichel.de> | 2017-04-06 17:34:00 +0200 |
|---|---|---|
| committer | Florian Apolloner <apollo13@users.noreply.github.com> | 2017-04-07 12:45:08 +0200 |
| commit | bde814142a933bd96c3fa54a64cb1f74a575bb38 (patch) | |
| tree | b235a8ee4f10513f9c2782a16a122cca91137249 /django | |
| parent | fd892f3443fe9a35684b7b798a8fe1b07d118e3c (diff) | |
Fixed #22654 -- Broken decimal validation
Diffstat (limited to 'django')
| -rw-r--r-- | django/utils/formats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/formats.py b/django/utils/formats.py index 3cb0c0420c..aaf1c2ddd5 100644 --- a/django/utils/formats.py +++ b/django/utils/formats.py @@ -240,7 +240,7 @@ def sanitize_separators(value): Sanitize a value according to the current decimal and thousand separator setting. Used with form field input. """ - if settings.USE_L10N and isinstance(value, str): + if isinstance(value, str): parts = [] decimal_separator = get_format('DECIMAL_SEPARATOR') if decimal_separator in value: |
