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 10:25:55 +0300 |
| commit | 8d326336c5fba4740114fea5294a7b426c96d65c (patch) | |
| tree | a3eec8cca6162823d73564a18d623192b9c52774 | |
| parent | f0b75f46fd0ee98c10887b3c5dc4593d2bccf821 (diff) | |
Fixed #37029 -- Corrected placement of </div> in change_list.html's pagination block.
Bug in 3f59711581bd22ebd0f13fb040b15b69c0eee21f.
| -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 78eef88294..4bb1b2f03b 100644 --- a/django/contrib/admin/templates/admin/change_list.html +++ b/django/contrib/admin/templates/admin/change_list.html @@ -89,11 +89,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`). |
