mirror of
https://github.com/django/django.git
synced 2024-12-24 01:55:49 +00:00
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:
parent
29ff2bb4cb
commit
705a2c31c1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user