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
permission_required = "passbook_core.view_invitation"
template_name = "administration/invitation/list.html"
paginate_by = 10
ordering = "-expires"
class InvitationCreateView(

View file

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