I am using Django pagination.There are 2 scenarios
- When user lands on this page the result set returns pre-filtered results so I don't necessarily need to paginate the results.
- When user turns off filters,I need to show all results( this is when I need to paginate,10000 s of records) Those records come to view in form of different lists And I send the result as a zipped format.
I am not able to paginate through more than 1 list/result set.
All you need is to give
Paginator
a list of objectsThe number of items you’d like to have on each page, and it gives you methods for accessing the items for each page: Django Doc
in the template, you can loop through it to display all the objects
BONUS: How you can display Paginator almost like this one