Opened 3 years ago

Closed 3 years ago

#17441 closed Bug (fixed)

GeoDjango admin incompatible with USE_THOUSAND_SEPARATOR = True

Reported by: aaugustin 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 Changed 3 years ago by aaugustin

  • Resolution set to fixed
  • Status changed from new to closed

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

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