Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #20415 -- Ensured srid is not localized in openlayers template

Thanks pierremarc07 at gmail.com for the report.
  • Loading branch information...
commit 0a29057ebea4335d503e373e4526b1c62c15bcdc 1 parent da9d626
Claude Paroz authored May 16, 2013
2  django/contrib/gis/templates/gis/admin/openlayers.js
@@ -12,7 +12,7 @@ OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.Sp
12 12
 {{ module }}.is_point = {{ is_point|yesno:"true,false" }};
13 13
 {% endblock %}
14 14
 {{ module }}.get_ewkt = function(feat){
15  
-  return 'SRID={{ srid }};' + {{ module }}.wkt_f.write(feat);
  15
+  return 'SRID={{ srid|unlocalize }};' + {{ module }}.wkt_f.write(feat);
16 16
 };
17 17
 {{ module }}.read_wkt = function(wkt){
18 18
   // OpenLayers cannot handle EWKT -- we make sure to strip it out.

0 notes on commit 0a29057

Please sign in to comment.
Something went wrong with that request. Please try again.