summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-03-26 18:10:58 +0100
committerClaude Paroz <claude@2xlibre.net>2014-03-26 18:10:58 +0100
commitd320863878f097b5cbf33ace12e3adb5e02f27e0 (patch)
tree69ff64228c0211e709b83fc7d01d82dc10174c29 /django/forms
parentb9e50e47742f67dcf3c37aad989b350e8255154e (diff)
Fixed #22114 -- Stopped adding trailing slashes in URLField.to_python
Thanks coredumperror at gmail.com for the report and Tim Graham for the review.
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/fields.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/django/forms/fields.py b/django/forms/fields.py
index 0ee66a9db3..acff7a54a9 100644
--- a/django/forms/fields.py
+++ b/django/forms/fields.py
@@ -704,9 +704,6 @@ class URLField(CharField):
# Rebuild the url_fields list, since the domain segment may now
# contain the path too.
url_fields = split_url(urlunsplit(url_fields))
- if not url_fields[2]:
- # the path portion may need to be added before query params
- url_fields[2] = '/'
value = urlunsplit(url_fields)
return value