jazzband / django-floppyforms

Full control of form rendering in the templates.
http://django-floppyforms.readthedocs.org/
Other
841 stars 148 forks source link

Openlayers breaks if USE_THOUSAND_SEPARATOR==True #103

Closed scardine closed 10 years ago

scardine commented 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.

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 }}.