Opened 13 years ago
Closed 13 years ago
#17441 closed Bug (fixed)
GeoDjango admin incompatible with USE_THOUSAND_SEPARATOR = True
Reported by: | Aymeric Augustin | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In django/contrib/gis/templates/gis/admin/openlayers.js
,
... {{ default_lon }}, {{ default_lat }} ...
should be
{% load l10n %} ... {{ default_lon|unlocalize }}, {{ default_lat|unlocalize }} ...
Otherwise the generated javascript contains a syntax error.
There may be other instances of this problem; I just stumbled upon this one.
Note:
See TracTickets
for help on using tickets.
I encountered the problem in Django 1.3, it was fixed at r16600.