Ticket #5331: urlfield.patch
File urlfield.patch, 548 bytes (added by , 17 years ago) |
---|
-
django/newforms/fields.py
408 408 value = super(URLField, self).clean(value) 409 409 if value == u'': 410 410 return value 411 # If no URL scheme given, assume http:// 412 if ':' not in value: 413 value = 'http://%s' % value 411 414 if self.verify_exists: 412 415 import urllib2 413 416 from django.conf import settings