#36512: The range of the pagination block on the admin ChangeList page is
incorrect.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Type: Bug
Status: new | Component:
| contrib.admin
Version: 5.2 | Severity: Normal
Keywords: changelist, | Triage Stage:
pagination | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Recently, accessibility improvements were made to the `ChangeList`
pagination on the admin page.[
https://github.com/django/django/pull/19448
PR]
As part of that process, the save button that was previously within the
pagination block was separated.
However, the current pagination block still includes the save button
within its range.
{{{
{% block pagination %}
<div class="changelist-footer">
{% pagination cl %}
{% if cl.formset and cl.result_count %}<input type="submit"
name="_save" class="default" value="{% translate 'Save' %}">{% endif %}
{% endblock %}
</div>
}}}
As a result, when overriding the template and customizing the contents of
the pagination block, the save button may be unintentionally removed.
The range of the pagination block should be adjusted to include only the
pagination template tags.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36512>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.