Changes between Initial Version and Version 2 of Ticket #34014


Ignore:
Timestamp:
Sep 15, 2022, 2:40:23 PM (2 years ago)
Author:
Shiplu Mokaddim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34014

    • Property Summary django.forms.fields.DecimalValidator fails to validate 0 in scientific notationdjango.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 DecimalValidator treats `0E+1` as valid decimal
     1In '''1.11.29''' `DecimalValidator` treats `0E+1` as valid decimal
    22
    33{{{
     
    77}}}
    88
    9 But in django 2.0.13 it raises validator error.
     9But in '''2.0.13''' it raises `ValidatorError`.
    1010{{{
    1111>>> DecimalField(max_digits=8, decimal_places=7).clean('0E+1')
Back to Top