1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

[soc2009/model-validation] Fixed #11826 django.forms.fields.URLField rejects valid URLs with no abs_path component

Thanks wam

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11525 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Honza Král
2009-09-11 22:12:30 +00:00
parent 9222091de8
commit 83a3588ff7
4 changed files with 16 additions and 7 deletions

View File

@@ -496,6 +496,10 @@ class TestFields(TestCase):
f = URLField()
self.assertEqual(u'http://example.com/', f.clean('http://example.com'))
self.assertEqual(u'http://example.com/test', f.clean('http://example.com/test'))
def test_urlfield_ticket11826(self):
f = URLField()
self.assertEqual(u'http://example.com/?some_param=some_value', f.clean('http://example.com?some_param=some_value'))
# BooleanField ################################################################