summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2007-02-26 04:53:44 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2007-02-26 04:53:44 +0000
commitb7fa37f9b24a745c55c20e1767b98a647b25dadb (patch)
treed5b760cb57a17fea6f9a41562c2862483980d835 /docs
parent530409369f97fb2c0180482d4b60bd84e1a60e6c (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/generic_views.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/generic_views.txt b/docs/generic_views.txt
index 23f40acb24..3131fe7fe2 100644
--- a/docs/generic_views.txt
+++ b/docs/generic_views.txt
@@ -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