Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#8290 closed (fixed)

DecimalField does not handle validation of large decimal_places

Reported by: Jay Hargis Owned by: Gary Wilson
Component: Validators Version: master
Severity: Keywords: DecimalField, decimal_places, validation
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

If decimal_places is set to 2, and a number like 0.0000000001 tries to get validated, it passes when it should fail. If you make a form and look at the cleaned data for a DecimalField, you will see that a number like .0000001 looks something like the notation 1E-8, of the decimal.Decimal type.

Attachments (1)

8290_decimal_field_clean.diff (1.4 KB) - added by David Gouldin 8 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by Malcolm Tredinnick

milestone: 1.0 beta1.0
Triage Stage: UnreviewedAccepted

Changed 8 years ago by David Gouldin

comment:2 Changed 8 years ago by David Gouldin

Owner: changed from nobody to David Gouldin

comment:3 Changed 8 years ago by Gary Wilson

Owner: changed from David Gouldin to Gary Wilson
Status: newassigned

comment:4 Changed 8 years ago by Gary Wilson

Resolution: fixed
Status: assignedclosed

fixed in [8391].

comment:5 Changed 5 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

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