In this chunk of the documentation, perhaps it would be beneficial to also
update the page number variable.
Something like this:
{{{
page = request.GET.get('page')
try:
contacts = paginator.page(page)
except PageNotAnInteger:
# If page is not an integer, deliver first page.
contacts = paginator.page(1)
page = 1
except EmptyPage:
# If page is out of range (e.g. 9999), deliver last page of
results.
contacts = paginator.page(paginator.num_pages)
page = paginator.num_pages
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22731>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => wontfix
* needs_tests: => 0
* needs_docs: => 0
Comment:
Please reopen if I've missed something, but I don't see the point in
updating the variable when it's not used in any code that follows.
--
Ticket URL: <https://code.djangoproject.com/ticket/22731#comment:1>