Form fields don't handle localized numbers correctly
See django/forms/fields.py:275 for how the DecimalField tries to handle the DECIMAL_SEPARATOR, IntegerField/FloatField will need that too (but for the thousands separator)…
Attachments
(1)
- 12779.1.diff
(14.9 KB
) - added by Jannis Leidel 15 years ago.
- Adding ability to sanitize the seperators contained in form field input
Download all attachments as:
.zip
Change History
(6)
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Jannis Leidel
|
Status: |
new → assigned
|
Component: |
Translations → Internationalization
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
This is about THOUSAND_SEPARATOR especially.