From 8671238bab571c73164c6a931beaead70f922fde Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 28 Aug 2011 08:31:44 +0530 Subject: [PATCH] geometry_bboverlaps -> geometry__bboverlaps --- 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 0164eb6..700af08 100644 --- a/gazetteer/places/models.py +++ b/gazetteer/places/models.py @@ -20,7 +20,7 @@ class FeatureSearchManager(models.GeoManager): def overlaps(self, (minx, miny, maxx, maxy), text=None, srid=4326): bbox = Polygon(((minx,miny),(minx,maxy),(maxx,maxy),(maxx,miny),(minx,miny)),srid=srid) if srid != 4326: bbox.transform(4326) # convert to lon/lat - qset = super(FeatureSearchManager, self).get_query_set().filter(geometry_bboverlaps=bbox) + qset = super(FeatureSearchManager, self).get_query_set().filter(geometry__bboverlaps=bbox) if text: text = text.replace("'", "''") # escape the ' # use the pg_trgm index