Commit df2b7a50 authored by fred's avatar fred
Browse files

add section name to search context

parent ea59f0ad
......@@ -6,6 +6,7 @@ from haystack.query import SearchQuerySet
class SearchView(FacetedSearchView):
def extra_context(self):
context = super(SearchView, self).extra_context()
context['sectionName'] = 'Search'
context['selected_categories'] = [
x.split(':', 1)[1] for x in self.request.GET.getlist('selected_facets')
if x.startswith('categories_exact')]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment