id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 13054 integer part grouping settings does not respect USE_L10N setting value, changes behavior of floatformat Ramiro Morales nobody "(An offspring of #13032) If, for example, you have this in your settings: {{{ #!python USE_L10N = False NUMBER_GROUPING=1 THOUSAND_SEPARATOR='!' USE_THOUSAND_SEPARATOR=True }}} you get this in a `manage.py shell` session: {{{ In [1]: from django.template import Template, Context In [2]: Template('{{ n|floatformat }}').render(Context({'n': 100})) Out[2]: u'1!0!0' }}} i.e. the thousand and grouping formatting settings values get used even if `USE_L10N` is False. This is either a code implementation bug or our documentation at http://docs.djangoproject.com/en/dev/ref/settings/#use-thousand-separator isn't clear enough. I'm inclined to think it is a bug because this hypothetical scenario: An user has set `NUMBER_GROUPING` to a value > 0 and `USE_THOUSAND_SEPARATOR = True` but sets `USE_L10N = False` thinking it's a master switch that turns the locale-aware formatting machinery off. But the `floatformat` filter still messes with the part to the left of the decimal separator. The default value of `NUMBER_GROUPING` is 0 and that's why we haven't seen report of this yet. " closed Internationalization dev fixed Accepted 1 0 0 0 0 0