From 1e955e01430c7fdaf0ffe7e1da0d0ca71c1c4836 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sat, 9 Jan 2010 20:03:11 +0000 Subject: [PATCH] Fixed #11478 - Use namespacing for URLs to i18n JavaScript in admin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12138 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- .../admin/templates/admin/auth/user/change_password.html | 3 ++- django/contrib/admin/templates/admin/change_form.html | 3 ++- django/contrib/admin/templates/admin/change_list.html | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/django/contrib/admin/templates/admin/auth/user/change_password.html b/django/contrib/admin/templates/admin/auth/user/change_password.html index 11414d14653..ab47385fb42 100644 --- a/django/contrib/admin/templates/admin/auth/user/change_password.html +++ b/django/contrib/admin/templates/admin/auth/user/change_password.html @@ -1,7 +1,8 @@ {% extends "admin/base_site.html" %} {% load i18n admin_modify adminmedia %} {% block extrahead %}{{ block.super }} - +{% url admin:jsi18n as jsi18nurl %} + {% endblock %} {% block extrastyle %}{{ block.super }}{% endblock %} {% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %} diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html index c5ac729c7ed..2db16bda05b 100644 --- a/django/contrib/admin/templates/admin/change_form.html +++ b/django/contrib/admin/templates/admin/change_form.html @@ -2,7 +2,8 @@ {% load i18n admin_modify adminmedia %} {% block extrahead %}{{ block.super }} - +{% url admin:jsi18n as jsi18nurl %} + {{ media }} {% endblock %} diff --git a/django/contrib/admin/templates/admin/change_list.html b/django/contrib/admin/templates/admin/change_list.html index 20b2eff060e..3bcec9832f4 100644 --- a/django/contrib/admin/templates/admin/change_list.html +++ b/django/contrib/admin/templates/admin/change_list.html @@ -6,7 +6,8 @@ {% if cl.formset %} - + {% url admin:jsi18n as jsi18nurl %} + {% endif %} {{ media }} {% if not actions_on_top and not actions_on_bottom %}