MultipleObjectMixin.paginate_queryset always returns is_paginated=True
|Reported by:||i.virabyan@…||Owned by:||ivan_virabyan|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||yes|
is_paginated: A boolean representing whether the results are paginated. Specifically ... if the available objects do not span multiple pages.
But is_paginated is True even when objects do not span multiple pages.
def paginate_queryset(self, queryset, page_size): ... return (paginator, page, page.object_list, True)
As you can see, it always sets the last element of tuple to True, which is value for is_paginated.
Change History (6)
Changed 5 years ago by i.virabyan@…
comment:1 Changed 5 years ago by russellm
- Keywords blocker added
- Needs documentation unset
- Needs tests set
- Patch needs improvement set
- Triage Stage changed from Unreviewed to Accepted
comment:2 Changed 5 years ago by ivan_virabyan
- Owner changed from nobody to ivan_virabyan
- Status changed from new to assigned
Changed 5 years ago by ivan_virabyan
comment:3 Changed 5 years ago by russellm
- Resolution set to fixed
- Status changed from assigned to closed