From 71f8a9a5cc01e12c553286aba8b37f76033a8e1d Mon Sep 17 00:00:00 2001 From: Harris Lapiroff Date: Wed, 20 Apr 2011 17:09:59 -0400 Subject: [PATCH] Added search.result_template to the context for search views with ajax enabled. --- contrib/sobol/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/sobol/models.py b/contrib/sobol/models.py index e4e4202..c7f2c61 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, '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() -- 2.20.1