From f21123dadd22b7a8e687b3c58fc9f168585d1c50 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 25 Feb 2019 21:12:11 +0100 Subject: [PATCH] Better pagination in admin --- templates/admin/change_list.html | 1 + templates/admin/pagination.html | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/templates/admin/change_list.html b/templates/admin/change_list.html index 4bd1ab50..a6210b90 100644 --- a/templates/admin/change_list.html +++ b/templates/admin/change_list.html @@ -74,6 +74,7 @@ {% endblock %}
{% csrf_token %} + {% block pagination_up %}{% pagination cl %}{% endblock %} {% if cl.formset %}
{{ cl.formset.management_form }}
{% endif %} diff --git a/templates/admin/pagination.html b/templates/admin/pagination.html index d6e4922d..2add76e5 100644 --- a/templates/admin/pagination.html +++ b/templates/admin/pagination.html @@ -1,13 +1,11 @@ {# Please keep this template in sync with django/contrib/admin one #} {% load admin_list %} {% load i18n %} -