X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/8a7ab75997519a2e99d8a1bf7218af016eaf187d..2b607d5a5e948a3399f110bd04583d2213db24ce:/contrib/sobol/models.py diff --git a/contrib/sobol/models.py b/contrib/sobol/models.py index e4e4202..ee8187d 100644 --- a/contrib/sobol/models.py +++ b/contrib/sobol/models.py @@ -198,7 +198,7 @@ class SearchView(MultiView): }) else: context.update({ - 'searches': [{'verbose_name': verbose_name, 'url': self.reverse('ajax_api_view', kwargs={'slug': slug}, node=request.node)} for slug, verbose_name in registry.iterchoices() if slug in self.searches] + 'searches': [{'verbose_name': verbose_name, 'slug': slug, 'url': self.reverse('ajax_api_view', kwargs={'slug': slug}, node=request.node), 'result_template': registry[slug].result_template} for slug, verbose_name in registry.iterchoices() if slug in self.searches] }) else: form = SearchForm()