admin: fix some models not being paginated

This commit is contained in:
Jens Langhammer 2020-02-27 15:30:28 +01:00
parent 82654b3fd9
commit 53e5cf7826
2 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,8 @@ class InvitationListView(LoginRequiredMixin, PermissionListMixin, ListView):
model = Invitation model = Invitation
permission_required = "passbook_core.view_invitation" permission_required = "passbook_core.view_invitation"
template_name = "administration/invitation/list.html" template_name = "administration/invitation/list.html"
paginate_by = 10
ordering = "-expires"
class InvitationCreateView( class InvitationCreateView(

View File

@ -24,6 +24,7 @@ class PolicyListView(LoginRequiredMixin, PermissionListMixin, ListView):
model = Policy model = Policy
permission_required = "passbook_core.view_policy" permission_required = "passbook_core.view_policy"
paginate_by = 10
ordering = "order" ordering = "order"
template_name = "administration/policy/list.html" template_name = "administration/policy/list.html"