From 6fef85387537db1d9d576115f6edb5bc3a986e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 15 Aug 2018 21:49:11 +0200 Subject: [PATCH] misc: disable l10n by default in templated URLs (#25695) --- combo/utils/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo/utils/urls.py b/combo/utils/urls.py index b83e755..24be39f 100644 --- a/combo/utils/urls.py +++ b/combo/utils/urls.py @@ -34,7 +34,7 @@ class TemplateError(Exception): def get_templated_url(url, context=None): if '{{' not in url and '{%' not in url and '[' not in url: return url - template_vars = Context() + template_vars = Context(use_l10n=False) if context: template_vars.update(context) template_vars['user_email'] = '' -- 2.18.0