summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-03-23 05:45:59 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-03-23 05:45:59 +0000
commit0fea1348d6ade374a91f8328d630dd442c1bc7c9 (patch)
tree30bd916b3af05ca129c0b26715783e80ba2f9d4a
parentf3b48a21fb62c5baf46aa600493acf26308d0b14 (diff)
Fixed #6846 -- Fixed first_on_page and last_on_page in list_detail generic
view. Thanks, trevor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/views/generic/list_detail.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/generic/list_detail.py b/django/views/generic/list_detail.py
index cb9b014eb5..ea77d46300 100644
--- a/django/views/generic/list_detail.py
+++ b/django/views/generic/list_detail.py
@@ -74,8 +74,8 @@ def object_list(request, queryset, paginate_by=None, page=None,
'page': page_obj.number,
'next': page_obj.next_page_number(),
'previous': page_obj.previous_page_number(),
- 'last_on_page': page_obj.start_index(),
- 'first_on_page': page_obj.end_index(),
+ 'first_on_page': page_obj.start_index(),
+ 'last_on_page': page_obj.end_index(),
'pages': paginator.num_pages,
'hits': paginator.count,
'page_range': paginator.page_range,