2014-02-10 65 views
0
@page_template('voziladijelovi_dodatak.html') 
def traziVozilaDijelovi(request): 
    sqs = SearchQuerySet().filter(kategorije=('Vozila i Dijelovi')).facet('podkategorije').facet('drzava').facet('grad') 
    view = FacetedSearchView(form_class=FacetedSearchForm, searchqueryset=sqs) 

    return view(request) 

模板{%include page_template%}不起作用。django-haystack和無盡的分頁無法{%include page_template%}

extra_context中用{u'page_template ':u'voziladijelovi_dodatak.html'}從 create_response()缺少

如何包括有鑑於此

回答

1

你的意思是這樣的:

view = FacetedSearchView(form_class=FacetedSearchForm, 
      searchqueryset=sqs, 
      template='voziladijelovi_dodatak.html')