mirror of
https://github.com/django/django.git
synced 2025-09-13 22:16:28 +00:00
Fixed #3170: added first_on_page and last_on_page arguments to paginated generic views. Thanks, Grimboy.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
530409369f
commit
b7fa37f9b2
2 changed files with 14 additions and 0 deletions
|
@ -752,6 +752,12 @@ If the results are paginated, the context will contain these extra variables:
|
|||
|
||||
* ``previous``: The previous page number, as an integer. This is 1-based.
|
||||
|
||||
* `last_on_page`: **New in Django development version** The number of the
|
||||
last result on the current page. This is 1-based.
|
||||
|
||||
* `first_on_page`: **New in Django development version** The number of the
|
||||
first result on the current page. This is 1-based.
|
||||
|
||||
* ``pages``: The total number of pages, as an integer.
|
||||
|
||||
* ``hits``: The total number of objects across *all* pages, not just this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue