.find() function needs to accept keyword parameter 'threshold' - Schuyler now has to actually do something with it:)

This commit is contained in:
Sanj 2011-08-31 15:52:38 +05:30
parent fed4baa1d5
commit b7274133b9

View File

@ -24,7 +24,7 @@ class FeatureSearchManager(models.GeoManager):
cursor = connection.cursor()
cursor.execute("""SELECT set_limit(%f)""" % threshold)
def find(self, bbox=None, text=None, adm1=None, adm2=None, srid=4326):
def find(self, bbox=None, text=None, adm1=None, adm2=None, threshold=None, srid=4326):
qset = self.get_query_set()
if bbox:
(minx, miny, maxx, maxy) = bbox