From ca144b8254691e9633ddedb7ad11b2c4919b8b77 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 1 Apr 2013 17:30:40 +0100 Subject: [PATCH] Convert the lat/lng to floats for Point. --- app/stores/views/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/stores/views/search.py b/app/stores/views/search.py index 02ac550..6859617 100644 --- a/app/stores/views/search.py +++ b/app/stores/views/search.py @@ -18,7 +18,7 @@ class DistanceSearchView(ListView): if location: name, geo = caching_geo_lookup(location) elif lat and lng: - geo = (lat, lng) + geo = (float(lat), float(lng)) else: geo = None self.location_geo = geo