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...
1 parent 29ff2bb commit 705a2c31c1989f4ecdb086efed0e60a1448ac70d @jacobian jacobian committed Oct 10, 2005
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/views/generic/list_detail.py
View
1 django/views/generic/list_detail.py
@@ -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)

0 comments on commit 705a2c3

Please sign in to comment.