Refs #26104 -- Replaced unnecessary force_str() with force_text().

This commit is contained in:
Tim Graham 2016-01-23 13:40:18 -05:00
parent 4c912d184d
commit 6b258befc2
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ class DurationField(Field):
return None
if isinstance(value, datetime.timedelta):
return value
value = parse_duration(force_str(value))
value = parse_duration(force_text(value))
if value is None:
raise ValidationError(self.error_messages['invalid'], code='invalid')
return value