Code

Ticket #11695: change_list.diff

File change_list.diff, 630 bytes (added by Rupe, 5 years ago)

From \contrib\admin\templates\admin - Added the Reset button

Line 
1Index: change_list.html
2===================================================================
3--- change_list.html    (revision 11434)
4+++ change_list.html    (working copy)
5@@ -41,6 +41,7 @@
6     {% block object-tools %}
7       {% if has_add_permission %}
8         <ul class="object-tools">
9+          <li><a href=".">{% trans 'Reset sorting' %}{% if cl.has_filters or cl.date_hierarchy %}{% trans ' and filters' %}{% endif %}</a></li>
10           <li>
11             <a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">
12               {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}