Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#13107 closed (fixed)

model_formsets test fails to validate models

Reported by: Martin v. Löwis Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Running model_formsets in r12773 gives

Error: One or more models did not validate:
model_formsets.bookwithcustompk: "my_pk": DecimalFields require a "decimal_places" attribute that is a positive integer.

Change History (3)

comment:1 by Karen Tracey, 15 years ago

milestone: 1.2
Triage Stage: UnreviewedAccepted

This validation was added in r12768/r12769. The model it is complaining about has a decimal_places arg set to 0. 0 seems like a valid value to me so I think it's the new validation that is broken.

comment:2 by Karen Tracey, 15 years ago

Resolution: fixed
Status: newclosed

(In [12774]) Fixed #13107: Adjusted decimal_places validation to accept 0 as a valid value. Thanks to loewis for report.

comment:3 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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