'Adds radius-based parameters to search query.'

def add_dwithin(self, field, point, distance):

    from haystack.utils.geo import ensure_point, ensure_distance
    self.dwithin = {u'field': field, u'point': ensure_point(point), u'distance': ensure_distance(distance)}
