summaryrefslogtreecommitdiff
path: root/django/templatetags
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-10-22 11:32:06 +0200
committerClaude Paroz <claude@2xlibre.net>2017-11-07 20:48:15 +0100
commit1b7780ea0802116eeef80b398a0432ac3f0ba9ef (patch)
tree742118f9b765f2183236a2379aa9b60ff19e3cb7 /django/templatetags
parent327f0f37ce3c1e5ac3a19668add237ddd92266d6 (diff)
Fixed #28544 -- Made unlocalize template filter behave like {% localize off %} tag
Thanks Beda Kosata for the report and Tim Graham for the review.
Diffstat (limited to 'django/templatetags')
-rw-r--r--django/templatetags/l10n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/templatetags/l10n.py b/django/templatetags/l10n.py
index b00a8b8606..9212753286 100644
--- a/django/templatetags/l10n.py
+++ b/django/templatetags/l10n.py
@@ -19,7 +19,7 @@ def unlocalize(value):
Force a value to be rendered as a non-localized value,
regardless of the value of ``settings.USE_L10N``.
"""
- return str(value)
+ return str(formats.localize(value, use_l10n=False))
class LocalizeNode(Node):