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.

Change History (1)

comment:1 by Aymeric Augustin, 13 years ago

Resolution: fixed
Status: newclosed

I encountered the problem in Django 1.3, it was fixed at r16600.

Note: See TracTickets for help on using tickets.
Back to Top