diff --git a/django/views/generic/list_detail.py b/django/views/generic/list_detail.py index cb9b014eb5b..ea77d46300c 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,