def search(self):
    sqs = super(CustomSearchForm, self).search()
if not self.is_valid():
    return sqs
filts = []
if self.cleaned_data['start_date']:
    filts.append(SQ(created_date__gte=self.cleaned_data['start_date']))
if self.cleaned_data['end_date']:
    filts.append(SQ(created_date__lte=self.cleaned_data['end_date']))
if len(filts) > 0 and not self.cleaned_data['q']:
    sqs = SearchQuerySet().order_by('-created_date')
for filt in filts:
    sqs = sqs.filter(filt)
return sqs
Django Haystack - Show results without needing a search query?