admin: fix some models not being paginated
This commit is contained in:
parent
82654b3fd9
commit
53e5cf7826
|
@ -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(
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Reference in New Issue