'Adds some more data to the template context.'

def resolve_context(self, data, request, response):

    data['selected_filters'] = get_filters(request.query_params.getlist)
    data['search_ref'] = ref_from_request(request)
    data['index'] = Index.objects.get_current()
    return super(ExtendedTemplateHTMLRenderer, self).resolve_context(data, request, response)
