#34315: Close button read only changeview of admin does not preserve filters
-----------------------------------------+------------------------
               Reporter:  Jan Hošek      |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  contrib.admin  |        Version:  4.1
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 Save and Delete buttons in change view of admin send you back to list view
 with preserved filters. In some cases (for example user does not have
 change permission) there is Close button instead of save buttons.

 Suggested change to make the behavior of Close button consistent with Save
 is in template:
 contrib/admin/templates/admin/submit_line.html
 {{{
 {% if show_close %}
     {% url opts|admin_urlname:'changelist' as close_url %}
     <a href="{% add_preserved_filters close_url %}" class="closelink">{%
 translate 'Close' %}</a>
 {% endif %}
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34315>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018627c7cc95-7493d684-3365-422b-8e75-aee67b5e132b-000000%40eu-central-1.amazonses.com.

Reply via email to