Projet

Général

Profil

0001-misc-disable-l10n-by-default-in-templated-URLs-25695.patch

Frédéric Péters, 15 août 2018 21:51

Télécharger (840 octets)

Voir les différences:

Subject: [PATCH] misc: disable l10n by default in templated URLs (#25695)

 combo/utils/urls.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
combo/utils/urls.py
34 34
def get_templated_url(url, context=None):
35 35
    if '{{' not in url and '{%' not in url and '[' not in url:
36 36
        return url
37
    template_vars = Context()
37
    template_vars = Context(use_l10n=False)
38 38
    if context:
39 39
        template_vars.update(context)
40 40
        template_vars['user_email'] = ''
41
-