class DurationField(**kwargs)
[source]
- Default widget:
TextInput
- Empty value:
None
- Normalizes to: A Python
timedelta
. - Validates that the given value is a string which can be converted into a
timedelta
. - Error message keys:
required
,invalid
.
Accepts any format understood by parse_duration()
.
Please login to continue.