Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are getting the selectable model checkboxes because you're extending the ModelSearchForm:</p> <pre><code>#forms.py from haystack.forms import ModelSearchForm class ProduitForm(ModelSearchForm): </code></pre> <p>You can easily avoid this behaviour by extending the simple search form variant, provided by the haystack:</p> <pre><code>#forms.py from haystack.forms import SearchForm class ProduitForm(SearchForm): </code></pre> <p>Then you're going to add something like the following to you application's urls.py:</p> <pre><code>#urls.py from haystack.query import SearchQuerySet from haystack.views import SearchView, search_view_factory from myapp.models import Produit urlpatterns = patterns('', url(r'^produit/search/$', search_view_factory( view_class=SearchView, template='search/search.html', searchqueryset=SearchQuerySet().models(Resume), form_class=ProduitForm ), name='produit_search'), ) </code></pre> <p>Please note that there is a bug with .models() filter when trying to use it with latest versions of Haystack and Whoosh. If you would experience any kind of problems with the strategy above, then you should make sure, that your Haystack and Whoosh are of versions 2.0.0 and 2.4.1 relatively - tested and works well. <br><br> Also, not related to your question, you might want to avoid using HAYSTACK_SEARCH_RESULTS_PER_PAGE in your settings.py. It also has a very ugly bug. Just sharing my experience. Note that this info is related to Whoosh, everything should work fine with any other backend.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload