#21544: Problem with number format when not using L10N
-------------------------------+----------------------------------------
     Reporter:  yceruto@…      |                    Owner:  Yonel Ceruto
         Type:  Bug            |                   Status:  closed
    Component:  Utilities      |                  Version:  1.6
     Severity:  Normal         |               Resolution:  wontfix
     Keywords:  number format  |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+----------------------------------------

Comment (by yceruto@…):

 I want to use the grouping of thousands in my numeric formats, for which I
 use the "floatformat" filter.

 My configuration in "settings.py" is:
 USE_L10N = False
 USE_THOUSAND_SEPARATOR = True
 NUMBER_GROUPING = 3

 Showing my numbers without the grouping of thousands.

 When I check in depth the why, I realize that the grouping of thousands is
 subject to the value of the Variable settings.USE_L10N:

 django/utils/numberformat.py:

 def format (...):
 ...
 use_grouping = '''settings.USE_L10N and '''settings.USE_THOUSAND_SEPARATOR

 Think it would be correct to eliminate the constraint that prohibits the
 display grouping of thousands, if not L10N used?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21544#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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.e94ea240eeab21b13d3e700811761935%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to