From 0f46207ea46c9f9c893da805bc84bf0846d1915d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 23 Feb 2020 14:28:02 +0100 Subject: [PATCH] admin: fix provider list not having pagination --- passbook/admin/views/providers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/passbook/admin/views/providers.py b/passbook/admin/views/providers.py index a7cf76c65..845dfaad0 100644 --- a/passbook/admin/views/providers.py +++ b/passbook/admin/views/providers.py @@ -22,6 +22,8 @@ class ProviderListView(LoginRequiredMixin, PermissionListMixin, ListView): model = Provider permission_required = "passbook_core.add_provider" template_name = "administration/provider/list.html" + paginate_by = 10 + ordering = "id" def get_context_data(self, **kwargs): kwargs["types"] = {