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

@ -20,6 +20,8 @@ class SourceListView(AdminRequiredMixin, ListView):
"""Show list of all sources"""
model = Source
ordering = 'name'
paginate_by = 40
template_name = 'administration/source/list.html'
def get_context_data(self, **kwargs):