admin(major): add pagination to all listviews

This commit is contained in:
Langhammer, Jens
2019-10-14 13:15:42 +02:00
parent a6dee2e8ed
commit 2a27325dfd
19 changed files with 22 additions and 8 deletions

View File

@ -19,6 +19,8 @@ class PolicyListView(AdminRequiredMixin, ListView):
"""Show list of all policies"""
model = Policy
ordering = 'name'
paginate_by = 40
template_name = 'administration/policy/list.html'
def get_context_data(self, **kwargs):