#20601: Incorrect separators when chaining floatformat to intcomma in some
locales
-------------------------------------+-------------------------------------
Reporter: c.schmitt@… | Owner: Jacob
| Walls
Type: New feature | 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: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* has_patch: 0 => 1
* type: Bug => New feature
Comment:
Replying to [comment:26 Cassiano R. N. dos Santos]:
> But the bug persists.
I don't see the "g" suffix in your example. Also in Django 4.0 the
`floatformat` template filter no longer depends on the `USE_L10N` setting
and always returns localized output. Have you tried `{{ variable |
floatformat:"2g" }}`?
--
Ticket URL: <https://code.djangoproject.com/ticket/20601#comment:27>
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.36c5d99c2ac5e62b42b5f5781a6cc68b%40djangoproject.com.