#20601: Incorrect separators when chaining floatformat to intcomma in some
locales
-------------------------------------+-------------------------------------
Reporter: c.schmitt@… | Owner: Jacob
| Walls
Type: Bug | Status: closed
Component: Template system | Version: 4.0
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
internationalization, humanize, | checkin
contrib, float, floatcomma |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Cassiano R. N. dos Santos):
* cc: Cassiano R. N. dos Santos (added)
* has_patch: 1 => 0
* version: dev => 4.0
* type: New feature => Bug
Comment:
I'm just trying the fix in Django 4.0.1 with both
{{{
{{ variable | intcomma | floatformat:2 }} {# breaks template #}
}}}
and
{{{
{{ variable | floatformat:2 | intcomma }} {# results i.e., 10,123,00
(would be 10.123,00) #}
}}}
But the bug persists.
In my settings.py:
{{{
LANGUAGE_CODE = 'pt-BR'
USE_I18N = True
USE_L10N = True
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20601#comment:26>
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/078.3b255fd2e97658c2f4cd4110fffc3143%40djangoproject.com.