From b7274133b9b8b02398f7a0208d7b7fb7011fc9ad Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 31 Aug 2011 15:52:38 +0530 Subject: [PATCH] .find() function needs to accept keyword parameter 'threshold' - Schuyler now has to actually do something with it:) --- gazetteer/places/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gazetteer/places/models.py b/gazetteer/places/models.py index 78310db..4a0bd2e 100644 --- a/gazetteer/places/models.py +++ b/gazetteer/places/models.py @@ -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