Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #7345 -- In [8089], I'd forgotten that urlparse.urlsplit() didn…

…'t return

something with attributes until Python 2.5. Thanks, Honza Kral and apollo13.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 03373f1e24e3bdfef149de5e0478a39f38f1434d 1 parent 8099bc5
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/forms/fields.py
View
2  django/forms/fields.py
@@ -541,7 +541,7 @@ def clean(self, value):
if value and '://' not in value:
value = u'http://%s' % value
# If no URL path given, assume /
- if value and not urlparse.urlsplit(value).path:
+ if value and not urlparse.urlsplit(value)[2]:
value += '/'
value = super(URLField, self).clean(value)
if value == u'':

0 comments on commit 03373f1

Please sign in to comment.
Something went wrong with that request. Please try again.