Parcourir la source

Fix old add_preserved_filters

Denis K il y a 9 ans
Parent
commit
8da47b1783
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      jet/templates/admin/change_form.html
  2. 2 2
      jet/templates/admin/submit_line.html

+ 1 - 1
jet/templates/admin/change_form.html

@@ -32,7 +32,7 @@
                             {% block object-tools-items %}
                                 <li>
                                     {% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %}
-                                    <a href="{% add_preserved_filters history_url %}" class="historylink">{% trans "History" %}</a>
+                                    <a href="{% jet_add_preserved_filters history_url %}" class="historylink">{% trans "History" %}</a>
                                 </li>
                                 {% if has_absolute_url %}
                                     <li><a href="{{ absolute_url }}" class="viewsitelink">{% trans "View on site" %}</a></li>

+ 2 - 2
jet/templates/admin/submit_line.html

@@ -1,4 +1,4 @@
-{% load i18n admin_urls %}
+{% load i18n admin_urls jet_tags %}
 
 <div class="submit-row">
     {% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" name="_save" />{% endif %}
@@ -8,6 +8,6 @@
 
     {% if show_delete_link %}
         {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %}
-        <p class="deletelink-box"><a href="{% add_preserved_filters delete_url %}" class="deletelink button button-red">{% trans "Delete" %}</a></p>
+        <p class="deletelink-box"><a href="{% jet_add_preserved_filters delete_url %}" class="deletelink button button-red">{% trans "Delete" %}</a></p>
     {% endif %}
 </div>