admin: make pagination size configurable

This commit is contained in:
Jens Langhammer
2020-09-26 01:51:42 +02:00
parent 5d46c1ea5a
commit e104c74761
19 changed files with 49 additions and 51 deletions

View File

@ -20,18 +20,17 @@ from passbook.admin.views.utils import (
DeleteMessageView,
InheritanceCreateView,
InheritanceListView,
InheritanceUpdateView,
InheritanceUpdateView, UserPaginateListMixin,
)
from passbook.policies.models import Policy, PolicyBinding
from passbook.policies.process import PolicyProcess, PolicyRequest
class PolicyListView(LoginRequiredMixin, PermissionListMixin, InheritanceListView):
class PolicyListView(LoginRequiredMixin, PermissionListMixin, UserPaginateListMixin, InheritanceListView):
"""Show list of all policies"""
model = Policy
permission_required = "passbook_policies.view_policy"
paginate_by = 10
ordering = "name"
template_name = "administration/policy/list.html"