diff --git a/bolt-staff/bolt/admin/views/base.py b/bolt-staff/bolt/admin/views/base.py index 231c3da220..fcfd245e3e 100644 --- a/bolt-staff/bolt/admin/views/base.py +++ b/bolt-staff/bolt/admin/views/base.py @@ -145,8 +145,11 @@ def get_context(self): # Make this available on self for usage in get_objects and other methods self.filter = self.request.GET.get("filter", "") + # Make this available to get_filters and stuff + self.objects = self.get_objects() + page_size = self.request.GET.get("page_size", self.page_size) - paginator = Paginator(self.get_objects(), page_size) + paginator = Paginator(self.objects, page_size) self._page = paginator.get_page(self.request.GET.get("page", 1)) context["paginator"] = paginator