From 6b258befc2cd2e86281759e761979cbac4045e96 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 23 Jan 2016 13:40:18 -0500 Subject: [PATCH] Refs #26104 -- Replaced unnecessary force_str() with force_text(). --- django/forms/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/forms/fields.py b/django/forms/fields.py index 00e9ff102b..2facb74b1d 100644 --- a/django/forms/fields.py +++ b/django/forms/fields.py @@ -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