From 1b7780ea0802116eeef80b398a0432ac3f0ba9ef Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sun, 22 Oct 2017 11:32:06 +0200 Subject: Fixed #28544 -- Made unlocalize template filter behave like {% localize off %} tag Thanks Beda Kosata for the report and Tim Graham for the review. --- django/templatetags/l10n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/templatetags') 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): -- cgit v1.3