Ticket #11478: 11478-jsi18n-reverse-urls-needs-10061.diff

File 11478-jsi18n-reverse-urls-needs-10061.diff, 2.2 KB (added by Ramiro Morales, 15 years ago)

Patch for this issue, it depends on recent patch for #10061 from Russell being applied first

  • django/contrib/admin/templates/admin/auth/user/change_password.html

    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 d28dd0f..19e0e8c 100644
    a b  
    11{% extends "admin/base_site.html" %}
    22{% load i18n admin_modify adminmedia %}
    33{% block extrahead %}{{ block.super }}
    4 <script type="text/javascript" src="../../../../jsi18n/"></script>
     4{% url admin:jsi18n as jsi18nurl %}
     5<script type="text/javascript" src="{{ jsi18nurl|default:"../../../../jsi18n/" }}"></script>
    56{% endblock %}
    67{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
    78{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
  • django/contrib/admin/templates/admin/change_form.html

    diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html
    index f645d65..f938789 100644
    a b  
    22{% load i18n admin_modify adminmedia %}
    33
    44{% block extrahead %}{{ block.super }}
    5 <script type="text/javascript" src="../../../jsi18n/"></script>
     5{% url admin:jsi18n as jsi18nurl %}
     6<script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script>
    67{{ media }}
    78{% endblock %}
    89
  • django/contrib/admin/templates/admin/change_list.html

    diff --git a/django/contrib/admin/templates/admin/change_list.html b/django/contrib/admin/templates/admin/change_list.html
    index 31bf7bd..a654349 100644
    a b  
    66  <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/changelists.css" />
    77  {% if cl.formset %}
    88    <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
    9     <script type="text/javascript" src="../../jsi18n/"></script>
     9    {% url admin:jsi18n as jsi18nurl %}
     10    <script type="text/javascript" src="{{ jsi18nurl|default:"../../jsi18n/" }}"></script>
    1011  {% endif %}
    1112  {{ media }}
    1213  {% if not actions_on_top and not actions_on_bottom %}
Back to Top