Skip to content

Commit

Permalink
Fixed #6846 -- Fixed first_on_page and last_on_page in list_detail ge…
Browse files Browse the repository at this point in the history
…neric

view. Thanks, trevor.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Mar 23, 2008
1 parent f3b48a2 commit 0fea134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/views/generic/list_detail.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def object_list(request, queryset, paginate_by=None, page=None,
'page': page_obj.number, 'page': page_obj.number,
'next': page_obj.next_page_number(), 'next': page_obj.next_page_number(),
'previous': page_obj.previous_page_number(), 'previous': page_obj.previous_page_number(),
'last_on_page': page_obj.start_index(), 'first_on_page': page_obj.start_index(),
'first_on_page': page_obj.end_index(), 'last_on_page': page_obj.end_index(),
'pages': paginator.num_pages, 'pages': paginator.num_pages,
'hits': paginator.count, 'hits': paginator.count,
'page_range': paginator.page_range, 'page_range': paginator.page_range,
Expand Down

0 comments on commit 0fea134

Please sign in to comment.