#20415: broken SRID in gis.admin javascript when "USE_THOUSAND_SEPARATOR = True"
----------------------------------+--------------------------------------
     Reporter:  pierremarc07@…    |                    Owner:  nobody
         Type:  Uncategorized     |                   Status:  new
    Component:  GIS               |                  Version:  1.8
     Severity:  Normal            |               Resolution:
     Keywords:  gis, admin, srid  |             Triage Stage:  Unreviewed
    Has patch:  1                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Changes (by olivierdalang):

 * status:  closed => new
 * version:  1.5 => 1.8
 * resolution:  fixed =>


Comment:

 Hi,

 I get this bug again (tested in 1.8.5 and 1.8.8).

 As soon as I add {{{USE_THOUSAND_SEPARATOR = True}}} in settings.py, the
 default map widgets in the admin stop working, as I get this javascript
 error :
 {{{
 `Uncaught SyntaxError: Unexpected token ,` `(index):151`
 }}}

 The javascript indeed looks like :
 {{{
 var options = {
             ...
             map_srid: 4,326,
             ...
         };
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/20415#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.39856a52bd034b2c03b4f3b440078f2c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to