Fixed a facet filter bug where redundant code would error out depending on the query.
All checks were successful
StarFields Django Rest Framework Generics / build (push) Successful in 12s
All checks were successful
StarFields Django Rest Framework Generics / build (push) Successful in 12s
This commit is contained in:
@@ -334,8 +334,7 @@ class FacetFilter(BaseFilterBackend):
|
||||
|
||||
if view.facets:
|
||||
for facet in view.facets:
|
||||
request_slug = request.query_params[facet.slug]
|
||||
if facet.slug in request.query_params.keys() and request_slug:
|
||||
if facet.slug in request.query_params.keys():
|
||||
tag_filterlist = request.query_params.get(facet.slug)
|
||||
if tag_filterlist == '':
|
||||
# If the tag filterlist is empty then we're not
|
||||
|
||||
Reference in New Issue
Block a user