From 55b5393bd235aa6c55ea9a7da6f0e8b75b204084 Mon Sep 17 00:00:00 2001 From: Srinivas Reddy Thatiparthy Date: Tue, 8 Aug 2017 20:32:08 +0530 Subject: Fixed #28474 -- Made DurationField raise ValidationError for inputs that raised OverflowError. --- docs/ref/forms/fields.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/ref/forms') 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`. -- cgit v1.3