forms.py 529 Bytes
Newer Older
1
from django import forms
alexandre's avatar
alexandre committed
2
from haystack.forms import HighlightedSearchForm
3 4


alexandre's avatar
alexandre committed
5 6 7 8 9
class ArticleSearchForm(HighlightedSearchForm):
    pass
    # def no_query_found(self):
    #     """
    #     Determines the behavior when no query was found.
10

alexandre's avatar
alexandre committed
11
    #     By default, no results are returned (``EmptySearchQuerySet``).
12

alexandre's avatar
alexandre committed
13 14 15 16
    #     Should you want to show all results, override this method in your
    #     own ``SearchForm`` subclass and do ``return self.searchqueryset.all()``.
    #     """
    #     return self.searchqueryset.all()