'Construct a url template to assist with navigating the resources.
This looks a bit nasty but urllib.urlencode resulted in even
nastier output...'

def _url_template(self, query, selected_facets):

    query_params = []
    for facet in selected_facets:
        query_params.append(('selected_facets', facet))
    query_params += [('q', query), ('format', 'json'), ('page', '{0}')]
    query_string = '&'.join(('='.join(p) for p in query_params))
    url_template = reverse('api_get_search', kwargs={'resource_name': self._meta.resource_name, 'api_name': 'v1'})
    return ((url_template + '?') + query_string)
