class DecimalValidator(max_digits, decimal_places)
[source]
New in Django 1.9.
Raises ValidationError
with the following codes:
-
'max_digits'
if the number of digits is larger thanmax_digits
. -
'max_decimal_places'
if the number of decimals is larger thandecimal_places
. -
'max_whole_digits'
if the number of whole digits is larger than the difference betweenmax_digits
anddecimal_places
.
Please login to continue.