summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorRaphael Michel <mail@raphaelmichel.de>2017-04-06 17:34:00 +0200
committerFlorian Apolloner <apollo13@users.noreply.github.com>2017-04-07 12:45:08 +0200
commitbde814142a933bd96c3fa54a64cb1f74a575bb38 (patch)
treeb235a8ee4f10513f9c2782a16a122cca91137249 /django
parentfd892f3443fe9a35684b7b798a8fe1b07d118e3c (diff)
Fixed #22654 -- Broken decimal validation
Diffstat (limited to 'django')
-rw-r--r--django/utils/formats.py2
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: