Fixed #604 - total number of objects in generic object_list view is now available as {{ hits }}

git-svn-id: http://code.djangoproject.com/svn/django/trunk@824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-10-10 20:18:47 +00:00
parent 29ff2bb4cb
commit 705a2c31c1
1 changed files with 1 additions and 0 deletions

View File

@ -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)