diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-10-10 20:18:47 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-10-10 20:18:47 +0000 |
| commit | 705a2c31c1989f4ecdb086efed0e60a1448ac70d (patch) | |
| tree | 42850067b5fd334a21079c100309a5f17410200d | |
| parent | 29ff2bb4cbc7ffa3193ba0cec48308cf0f4c1295 (diff) | |
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
| -rw-r--r-- | django/views/generic/list_detail.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/views/generic/list_detail.py b/django/views/generic/list_detail.py index 6328b7097a..87b1879059 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) |
