Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#12779 closed (fixed)

Form fields don't handle localized numbers correctly

Reported by: Florian Apolloner Owned by: Jannis Leidel
Component: Internationalization Version: master
Severity: Keywords:
Cc: Jannis Leidel Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

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 7 years ago.
Adding ability to sanitize the seperators contained in form field input

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 years ago by Alex Gaynor

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 7 years ago by Jannis Leidel

Owner: changed from nobody to Jannis Leidel
Status: newassigned

This is about THOUSAND_SEPARATOR especially.

comment:3 Changed 7 years ago by Jannis Leidel

Component: TranslationsInternationalization

Changed 7 years ago by Jannis Leidel

Attachment: 12779.1.diff added

Adding ability to sanitize the seperators contained in form field input

comment:4 Changed 7 years ago by Jannis Leidel

Resolution: fixed
Status: assignedclosed

(In [12625]) Fixed #12779 - Sanitize numeric form field input according to decimal and thousand separator settings.

comment:5 Changed 5 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top