Fix bug with 'all' key
EgorPitzy opened this issue · 0 comments
EgorPitzy commented
Hi, I'm not sure but I think I found a small fault which is related to the "all" key which is passed as a query parameter.
In the PaginationFormSetBase class, the mount_queryset function is missing else for the case when the all parameter was passed in
Library code
def mount_queryset(self):
If self.cl.show_all:
self._queryset = self.queryset
self._queryset = self.page.object_list
Corrected code
def mount_queryset(self):
If self.cl.show_all:
self._queryset = self.queryset
else:
self._queryset = self.page.object_list
It would also be nice to add a separate "Expand all" button or something similar.