From: Guillaume Pellerin Date: Thu, 12 Feb 2015 16:57:46 +0000 (+0100) Subject: fix again X-Git-Tag: 1.5.1~1^2~10 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5fa61d8048fc971212730e86aa8b95949ba2c6da;p=telemeta.git fix again --- 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