This package helps in paginating evaluated querysets
Project description
Evaluated Queryset Paginator
This python package has been developed in order to overcome the issues of the default django.core.Paginator
which does not paginate the evaluate query sets properly.
Functions
-
__init__()
Constructor of the class which takes two parameters as input:query_set
: The entire query set that needs to be paginatedobjects_per_page
: The number of objects that are required for each page
-
paginate()
This function is called by the constructor by default and performs the main task of forming the pages -
page()
Input parameters-page_number
and returns the total number of pages generated
Exceptions
-
EmptyPageException
This Exception is raised when theobjects_per_page
value passed is 0 -
EmptyQuerysetException
This Exception is raised when the total number of objects in thequery_set
is 0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for QuerysetPaginator-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8002b8918560bf4c53e9a872705c4613a7f753fcd978ebeef18fabfff9d41114 |
|
MD5 | a285765dc309525e63e6c8aefdd33306 |
|
BLAKE2b-256 | f676b85aede71b44738c2a409da2c88e10a795b5150437684984c8f0b0cc9016 |