Opened 6 years ago

Closed 5 years ago

Last modified 4 years ago

#12779 closed (fixed)

Form fields don't handle localized numbers correctly

Reported by: apollo13 Owned by: jezdez
Component: Internationalization Version: master
Severity: Keywords:
Cc: jezdez 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 jezdez 5 years ago.
Adding ability to sanitize the seperators contained in form field input

Download all attachments as: .zip

Change History (6)

comment:1 Changed 6 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 6 years ago by jezdez

  • Owner changed from nobody to jezdez
  • Status changed from new to assigned

This is about THOUSAND_SEPARATOR especially.

comment:3 Changed 6 years ago by jezdez

  • Component changed from Translations to Internationalization

Changed 5 years ago by jezdez

Adding ability to sanitize the seperators contained in form field input

comment:4 Changed 5 years ago by jezdez

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:5 Changed 4 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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