Changes between Initial Version and Version 2 of Ticket #34014
- Timestamp:
- Sep 15, 2022, 2:40:23 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34014
- Property Summary django.forms.fields.DecimalValidator fails to validate 0 in scientific notation → django.forms.fields.DecimalValidator fails to validate 0 in scientific notation (0E+1 or 0E+2)
-
Ticket #34014 – Description
initial v2 1 In django 1.11 DecimalValidatortreats `0E+1` as valid decimal1 In '''1.11.29''' `DecimalValidator` treats `0E+1` as valid decimal 2 2 3 3 {{{ … … 7 7 }}} 8 8 9 But in django 2.0.13 it raises validator error.9 But in '''2.0.13''' it raises `ValidatorError`. 10 10 {{{ 11 11 >>> DecimalField(max_digits=8, decimal_places=7).clean('0E+1')