#11496: max_value validation is inconsistant -----------------------------------------+---------------------------------- Reporter: bobbo...@gmail.com | Owner: nobody Status: new | Milestone: 1.0.3 Component: Forms | Version: 1.0 Resolution: | Keywords: max_value Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -----------------------------------------+---------------------------------- Changes (by ubernostrum):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Old description: > 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 New description: 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 Comment: (formatting) -- Ticket URL: <http://code.djangoproject.com/ticket/11496#comment:1> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---