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.
* owner: nobody => Rahmat Faisal
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34315#comment:1>
Comment (by Rahmat Faisal):
gonna look
--
Ticket URL: <https://code.djangoproject.com/ticket/34315#comment:2>
* stage: Unreviewed => Accepted
Comment:
Thanks for the report.
--
Ticket URL: <https://code.djangoproject.com/ticket/34315#comment:3>
Comment (by Bakdolot):
[https://github.com/django/django/pull/16531 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34315#comment:4>
* has_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34315#comment:5>
* needs_tests: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34315#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"325c44ac6c070465ef2b3b7b8ed06cbcb88a3f10" 325c44a]:
{{{
#!CommitTicketReference repository=""
revision="325c44ac6c070465ef2b3b7b8ed06cbcb88a3f10"
Fixed #34315 -- Preserved admin changelist filters on "Close" button.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34315#comment:7>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"1f193f7f56d0f83c188dca8b03266fbaa339d0f5" 1f193f7]:
{{{
#!CommitTicketReference repository=""
revision="1f193f7f56d0f83c188dca8b03266fbaa339d0f5"
[4.2.x] Fixed #34315 -- Preserved admin changelist filters on "Close"
button.
Backport of 325c44ac6c070465ef2b3b7b8ed06cbcb88a3f10 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34315#comment:8>