'Adds a query facet on a field.'

def add_query_facet(self, field, query):

    from haystack import connections
    self.query_facets.append((connections[self._using].get_unified_index().get_facet_fieldname(field), query))
