Opened 16 years ago

Closed 16 years ago

Last modified 13 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: dev
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: no UI/UX: no

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 16 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by Malcolm Tredinnick, 16 years ago

milestone: 1.0 beta1.0
Triage Stage: UnreviewedAccepted

by David Gouldin, 16 years ago

comment:2 by David Gouldin, 16 years ago

Owner: changed from nobody to David Gouldin

comment:3 by Gary Wilson, 16 years ago

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

comment:4 by Gary Wilson, 16 years ago

Resolution: fixed
Status: assignedclosed

fixed in [8391].

comment:5 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

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