pirave / django-pagination

Automatically exported from code.google.com/p/django-pagination
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add an easier view of setting the desired page from the view #79

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently the pagination code only looks for the context['request'].page 
variable to decide which page to show. The only way to programmatically force 
another page to display is the following:

get = request.GET.copy()
get['page'] = pagenum
request.GET = get

Before adding the request object to the context. This should be made easier, 
for example by having an extra optional parameter to autopaginate template tag.

Original issue reported on code.google.com by aigar...@gmail.com on 14 Mar 2012 at 8:50