Opened 16 years ago
Last modified 15 years ago
#11496 closed
max_value validation is inconsistant — at Version 1
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | Keywords: | max_value | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I am attempting to use validation in the following modelform:
class BatchForm(ModelForm):
amount = forms.DecimalField(max_digits=8,decimal_places=2,max_value=599999.99)
class Meta:
model = Batch
exclude = ('submit_date','user')
Sometimes is_valid() returns true and sometimes it returns false with the amount 1212.
The error returnedis:
Ensure this value is less than or equal to 599999.99.
Is this a know issue?
Version Django-1.0.2-final Python 2.5.1 Mac OSX 10.5.7
Note:
See TracTickets
for help on using tickets.
(formatting)