diff options
| author | Tim Graham <timograham@gmail.com> | 2026-04-13 06:39:47 -0400 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2026-04-14 09:27:32 +0200 |
| commit | 69d86004f7b3c9ed223c18998c2b799d1670474f (patch) | |
| tree | 8e613859538dec9520a3e5a9bb024726821a06d6 | |
| parent | 9799d2adf16d591432c70775c41c42890f4fc8c6 (diff) | |
[6.0.x] Fixed #37029 -- Corrected placement of </div> in change_list.html's pagination block.
Bug in 3f59711581bd22ebd0f13fb040b15b69c0eee21f.
Backport of 8d326336c5fba4740114fea5294a7b426c96d65c from main.
| -rw-r--r-- | django/contrib/admin/templates/admin/change_list.html | 8 | ||||
| -rw-r--r-- | docs/releases/6.0.5.txt | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/django/contrib/admin/templates/admin/change_list.html b/django/contrib/admin/templates/admin/change_list.html index b12f8ec583..088d44a299 100644 --- a/django/contrib/admin/templates/admin/change_list.html +++ b/django/contrib/admin/templates/admin/change_list.html @@ -88,11 +88,11 @@ {% if action_form and actions_on_bottom and cl.show_admin_actions %}{% admin_actions %}{% endif %} {% endblock %} {% 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 %} + <div class="changelist-footer"> + {% pagination cl %} + {% if cl.formset and cl.result_count %}<input type="submit" name="_save" class="default" value="{% translate 'Save' %}">{% endif %} + </div> {% endblock %} - </div> </form> </div> </div> diff --git a/docs/releases/6.0.5.txt b/docs/releases/6.0.5.txt index dbe684e59b..7e54cbe1a4 100644 --- a/docs/releases/6.0.5.txt +++ b/docs/releases/6.0.5.txt @@ -9,4 +9,7 @@ Django 6.0.5 fixes several bugs in 6.0.4. Bugfixes ======== -* ... +* Fixed a misplaced ``</div>`` in the + ``django/contrib/admin/templates/admin/change_list.html`` template added in + Django 6.0 that could be problematic when overriding the ``pagination`` block + (:ticket:`37029`). |
