diff options
| author | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2017-08-08 20:32:08 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-25 18:05:13 -0400 |
| commit | 55b5393bd235aa6c55ea9a7da6f0e8b75b204084 (patch) | |
| tree | 6cb753f4df8ecbb339ed3c462530bff21edbc244 /docs/ref/forms | |
| parent | 81e357a7e19f35235cc998459a10213532727d4e (diff) | |
Fixed #28474 -- Made DurationField raise ValidationError for inputs that raised OverflowError.
Diffstat (limited to 'docs/ref/forms')
| -rw-r--r-- | docs/ref/forms/fields.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 7c28c0e7e1..6c24c3534e 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -566,8 +566,9 @@ For each field, we describe the default widget used if you don't specify * Empty value: ``None`` * Normalizes to: A Python :class:`~python:datetime.timedelta`. * Validates that the given value is a string which can be converted into a - ``timedelta``. - * Error message keys: ``required``, ``invalid``. + ``timedelta``. The value must be between :attr:`datetime.timedelta.min` + and :attr:`datetime.timedelta.max`. + * Error message keys: ``required``, ``invalid``, ``overflow``. Accepts any format understood by :func:`~django.utils.dateparse.parse_duration`. |
