From: Guillaume Pellerin Date: Thu, 12 Feb 2015 16:54:08 +0000 (+0100) Subject: fix search list count X-Git-Tag: 1.5.1~1^2~12 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b3c3b7634e40f29c7642a413b499cd23801c0fb2;p=telemeta.git fix search list count --- diff --git a/telemeta/templates/telemeta/search_results.html b/telemeta/templates/telemeta/search_results.html index e5552b8a..7289824a 100644 --- a/telemeta/templates/telemeta/search_results.html +++ b/telemeta/templates/telemeta/search_results.html @@ -8,7 +8,7 @@ {% block title %}
- search-results {% trans "Search Results" %} ({{ page_obj.start_index }} - {{ page_obj.end_index }} / {{ object_list.count }}) + search-results {% trans "Search Results" %} ({{ page_obj.start_index }} - {{ page_obj.end_index }} / {{ count }})
{% bootstrap_paginate page_obj range=10 show_first_last="True" %} diff --git a/telemeta/views/home.py b/telemeta/views/home.py index 2a63cbfa..e5f3008c 100644 --- a/telemeta/views/home.py +++ b/telemeta/views/home.py @@ -414,4 +414,5 @@ class SearchView(ListView): context['corpus_num'] = self.corpus.count() context['fonds_num'] = self.fonds.count() context['type'] = self.type + context['count'] = self.object_list.count() return context