#26173: Don't localize boolean values
-------------------------------+--------------------
     Reporter:  mmarksnippety  |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Forms          |    Version:
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  1
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 django.utils.formats localize_input inserts thousands_separator into
 boolean values

 The problem is in django.utils.formats localize_input that is used in
 widgets to render value

 There is a check there like so:
     if isinstance(value, (decimal.Decimal, float, int, long)):
 which evaluates to True for Booleans (because booleans are ints, see
 "issubclass(bool, int)")

 This was reported: https://code.djangoproject.com/ticket/14807
 but this is old closed history.

 It touched us again, so maybe this time will be better to solve this

--
Ticket URL: <https://code.djangoproject.com/ticket/26173>
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/056.66c8267756e94079908f10d2fc6bd529%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to