Skip to content
Snippets Groups Projects
Commit e84b7ec3 authored by Roang's avatar Roang
Browse files

Fix FilteredListView to allow non paginated views

parent 14820fa0
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,8 @@ class FilteredListView(ListView): ...@@ -30,6 +30,8 @@ class FilteredListView(ListView):
""" """
try: try:
paginate_by = self.request.GET.get('paginate_by', self.paginate_by) paginate_by = self.request.GET.get('paginate_by', self.paginate_by)
if paginate_by is None:
return self.paginate_by
paginate_by = int(paginate_by) paginate_by = int(paginate_by)
except ValueError: except ValueError:
if str(paginate_by).lower() == 'all': if str(paginate_by).lower() == 'all':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment