diff --git a/django/newforms/fields.py b/django/newforms/fields.py index 54089cb3c3..b9e2ed35c7 100644 --- a/django/newforms/fields.py +++ b/django/newforms/fields.py @@ -215,7 +215,7 @@ class URLField(RegexField): "User-Agent": self.user_agent, } try: - req = urllib2.Request(field_data, None, headers) + req = urllib2.Request(value, None, headers) u = urllib2.urlopen(req) except ValueError: raise ValidationError(u'Enter a valid URL.')