From a515501b68b8539e4e1b7b3e9afcebbf2004fa44 Mon Sep 17 00:00:00 2001 From: Harris Lapiroff Date: Thu, 21 Apr 2011 11:58:52 -0400 Subject: [PATCH] Added slug to the context for ajax searches. --- 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 c7f2c61..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), 'result_template': registry[slug].result_template} 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() -- 2.20.1