A fork of django-pagination to allow you to change the page variable
Python
Switch branches/tags
Nothing to show
Pull request Compare This branch is 3 commits ahead, 15 commits behind ericflo:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
pagination
tests
.gitignore
CONTRIBUTORS.txt
LICENSE.txt
MANIFEST.in
README.rst
setup.py

README.rst

This is a fork of django-paginator to allow you to change the page variable on a template-by-template basis. To use it, simply add a 'by' argument to your 'autopaginate' tag. For example:

{% autopaginate comments by pg %}

This will autopaginate the 'comments' queryset using the 'pg' variable in the GET string. So, you would access page 2 by using '/path/to/article/?pg=2'.

You can also change the default page variable using the 'PAGINATION_DEFAULT_PAGE_VAR' setting. The app will then use the value given as the default page variable site-wide.

Important: This fork also removes the pagination middleware, because it is no longer needed. If you do not remove this from your MIDDLEWARE_CLASSES, you will experience errors because the class no longer exists.