From 705a2c31c1989f4ecdb086efed0e60a1448ac70d Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 10 Oct 2005 20:18:47 +0000 Subject: [PATCH] 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 --- django/views/generic/list_detail.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/views/generic/list_detail.py b/django/views/generic/list_detail.py index 6328b7097a1..87b18790591 100644 --- a/django/views/generic/list_detail.py +++ b/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)