Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#12779 closed (fixed)

Form fields don't handle localized numbers correctly

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

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

Download all attachments as: .zip

Change History (6)

comment:1 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Jannis Leidel, 15 years ago

Owner: changed from nobody to Jannis Leidel
Status: newassigned

This is about THOUSAND_SEPARATOR especially.

comment:3 by Jannis Leidel, 15 years ago

Component: TranslationsInternationalization

by Jannis Leidel, 15 years ago

Attachment: 12779.1.diff added

Adding ability to sanitize the seperators contained in form field input

comment:4 by Jannis Leidel, 15 years ago

Resolution: fixed
Status: assignedclosed

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

comment:5 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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