def base_sqs():
 sqs = SearchQuerySet()
 for facet in settings.OSCAR_SEARCH_FACETS['fields'].values():
  options = facet.get('options', {})
  sqs = sqs.facet(facet['field'], **options)
 for facet in settings.OSCAR_SEARCH_FACETS['queries'].values():
  for query in facet['queries']:
   sqs = sqs.query_facet(facet['field'], query[1])
 return sqs

def base_sqs ( ) : sqs = SearchQuerySet ( ) for facet in settings . OSCAR_SEARCH_FACETS [ 'fields' ] . values ( ) : options = facet . get ( 'options' , { } ) sqs = sqs . facet ( facet [ 'field' ] , ** options ) for facet in settings . OSCAR_SEARCH_FACETS [ 'queries' ] . values ( ) : for query in facet [ 'queries' ] : sqs = sqs . query_facet ( facet [ 'field' ] , query [ 1 ] ) return sqs
return the base searchqueryset for haystack searches .