mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Fixed #34014 -- Fixed DecimalValidator validating 0 in positive exponent scientific notation.
Thanks Shiplu Mokaddim for the report.
This commit is contained in:
parent
c11336cd99
commit
ae509f8f08
2 changed files with 5 additions and 2 deletions
|
|
@ -548,6 +548,7 @@ TEST_DATA = [
|
|||
Decimal("70E-6"),
|
||||
ValidationError,
|
||||
),
|
||||
(DecimalValidator(max_digits=2, decimal_places=1), Decimal("0E+1"), None),
|
||||
# 'Enter a number.' errors
|
||||
*[
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue