#35197: floatformat combined with intcomma filters misformatting in Django 
4.2.10
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  nobody
  nathangeffen                       |
                   Type:  Bug        |         Status:  new
              Component:  Template   |        Version:  4.2
  system                             |       Keywords:  intcomma,
               Severity:  Normal     |  floatformat
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  1          |
-------------------------------------+-------------------------------------
 A security bug was removed from the intcomma template filter in Django
 4.2.10. But it appears a bug was introduced that misformats numbers when
 the intcomma filter is combined with floatformat.
 The problem is a leading comma is added to some numbers (I suspect it is
 numbers with exactly 3 digits).

 Example code that worked in 4.2.7 but now misformatting in 4.2.10:
 {{total_amount|floatformat:"2"|intcomma}}

 I have not filed a bug on this system before and hope to be able to attach
 screenshots.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35197>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dac696447-805d6842-e880-4c9c-ade3-91f764a7479d-000000%40eu-central-1.amazonses.com.

Reply via email to