We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48ef86b commit 3308890Copy full SHA for 3308890
core/common/views.py
@@ -567,14 +567,7 @@ def is_head(self):
567
return self.request.method.lower() == 'head'
568
569
def should_perform_es_search(self):
570
- if self.is_head():
571
- result = bool(self.get_search_string())
572
- else:
573
- result = SEARCH_PARAM in self.request.query_params
574
-
575
- return result or self.has_searchable_extras_fields() or bool(
576
- self.get_faceted_filters()
577
- ) or len(self.get_sort_attributes()) > 0
+ return bool(self.get_search_string()) or self.has_searchable_extras_fields() or bool(self.get_faceted_filters())
578
579
def has_searchable_extras_fields(self):
580
return bool(
0 commit comments