Commits

Yohan Boniface committed ea6224f

Import: use json.dumps instead of repr for latlng value

Comments (0)

Files changed (1)

leaflet_storage/views.py

             except Exception:
                 continue
             try:
-                latlng = GEOSGeometry(repr(feature.geometry))
+                latlng = GEOSGeometry(simplejson.dumps(feature.geometry))
             except Exception:
                 continue  # TODO notify user
             if latlng.empty: