]> git.parisson.com Git - telemeta.git/commitdiff
fix again
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 12 Feb 2015 16:57:46 +0000 (17:57 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 12 Feb 2015 16:57:46 +0000 (17:57 +0100)
telemeta/views/home.py

index 995c46eec75afeb8d20da9460c7322730383d933..892604d4bebf2d3a2aaf578a921c90bdaaf3d917 100644 (file)
@@ -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