From 5fa61d8048fc971212730e86aa8b95949ba2c6da Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 12 Feb 2015 17:57:46 +0100 Subject: [PATCH] fix again --- telemeta/views/home.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telemeta/views/home.py b/telemeta/views/home.py index 995c46ee..892604d4 100644 --- a/telemeta/views/home.py +++ b/telemeta/views/home.py @@ -404,6 +404,7 @@ class SearchView(ListView): elif self.type == 'fonds': objects = self.fonds + self.objects = objects return objects def get_context_data(self, *args, **kwargs): @@ -414,5 +415,5 @@ class SearchView(ListView): context['corpus_num'] = self.corpus.count() context['fonds_num'] = self.fonds.count() context['type'] = self.type - context['count'] = self.object.count() + context['count'] = self.objects.count() return context -- 2.39.5