Closed scardine closed 10 years ago
I found a small bug when using the SRID 900913 at a project where settings.USE_THOUSAND_SEPARATOR is set to True.
settings.USE_THOUSAND_SEPARATOR
I this case, around line 32 at openlayers.html, the result will be:
map_srid: 900.913
Where it should be:
map_srid: 900913
This triggers the form validation error "Invalid geometry value".
In order to fix it, I've included {% load l10n %} at the beginning of the template and changed {{ map_srid }} to {{ map_srid|unlocalize }}.
{% load l10n %}
{{ map_srid }}
{{ map_srid|unlocalize }}
I found a small bug when using the SRID 900913 at a project where
settings.USE_THOUSAND_SEPARATOR
is set to True.I this case, around line 32 at openlayers.html, the result will be:
Where it should be:
This triggers the form validation error "Invalid geometry value".
In order to fix it, I've included
{% load l10n %}
at the beginning of the template and changed{{ map_srid }}
to{{ map_srid|unlocalize }}
.