id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 32949 decimal.InvalidOperation error on DecimalField form field yakimka yakimka "I have a form with DecimalField and max_value argument: {{{ class OrderForm(forms.ModelForm): sum = DecimalField(max_value=12) class Meta: model = Order fields = ['sum'] # model class Order(models.Model): sum = models.DecimalField( 'Sum', max_digits=18, decimal_places=2, default=0 ) }}} If I pass ""NaN"" value to this form it will fail with decimal.InvalidOperation error. https://github.com/django/django/pull/14645" Bug closed Forms 3.2 Release blocker fixed Ready for checkin 1 0 0 0 0 0