Django

Code

Changeset 8093

Show
Ignore:
Timestamp:
07/26/08 12:08:53 (4 months ago)
Author:
mtredinnick
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/forms/fields.py

    r8089 r8093  
    542542            value = u'http://%s' % value 
    543543        # If no URL path given, assume / 
    544         if value and not urlparse.urlsplit(value).path
     544        if value and not urlparse.urlsplit(value)[2]
    545545            value += '/' 
    546546        value = super(URLField, self).clean(value)