def get_filters(getter_func):
 if getter_func('none'):
  return [u'none']
 filters = collections.OrderedDict()
 for slug in FilterGroup.objects.values_list('slug', flat=True):
  for filters_slug in getter_func(slug, []):
   filters[filters_slug] = None
 if filters:
  return filters.keys()
 else:
  return [x[1] for x in Filter.objects.default_filters()]

def get_filters ( getter_func ) : if getter_func ( 'none' ) : return [ u'none' ] filters = collections . OrderedDict ( ) for slug in FilterGroup . objects . values_list ( 'slug' , flat = True ) : for filters_slug in getter_func ( slug , [ ] ) : filters [ filters_slug ] = None if filters : return filters . keys ( ) else : return [ x [ 1 ] for x in Filter . objects . default_filters ( ) ]
returns the values of all filter groups .