Convert the lat/lng to floats for Point.

This commit is contained in:
2013-04-01 17:30:40 +01:00
parent 075846d993
commit ca144b8254

View File

@@ -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