Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #604 - total number of objects in generic object_list view is n…

…ow available as {{ hits }}

git-svn-id: http://code.djangoproject.com/svn/django/trunk@824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 705a2c31c1989f4ecdb086efed0e60a1448ac70d 1 parent 29ff2bb
Jacob Kaplan-Moss jacobian authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/views/generic/list_detail.py
1  django/views/generic/list_detail.py
View
@@ -56,6 +56,7 @@ def object_list(request, app_label, module_name, paginate_by=None, allow_empty=F
'next': page + 1,
'previous': page - 1,
'pages': paginator.pages,
+ 'hits' : paginator.hits,
})
else:
object_list = mod.get_list(**lookup_kwargs)
Please sign in to comment.
Something went wrong with that request. Please try again.