Commit 2d01c9de authored by Claude Paroz's avatar Claude Paroz
Browse files

Removed some more useless code related to the verify_exists removal.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@17856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 7b89e0fc
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -42,9 +42,6 @@ class URLValidator(RegexValidator):
        r'(?::\d+)?' # optional port
        r'(?:/?|[/?]\S+)$', re.IGNORECASE)

    def __init__(self):
        super(URLValidator, self).__init__()

    def __call__(self, value):
        try:
            super(URLValidator, self).__call__(value)
+1 −6
Original line number Diff line number Diff line
@@ -662,13 +662,8 @@ class FieldsTests(SimpleTestCase):
            u'http://العربية.idn.icann.org/',
        )
        for url in urls:
            # Valid and existent IDN
            # Valid IDN
            self.assertEqual(url, f.clean(url))
        # Valid but non-existent IDN
        try:
            f.clean(u'http://broken.עברית.idn.icann.org/')
        except ValidationError, e:
            self.assertEqual("[u'This URL appears to be a broken link.']", str(e))

    def test_urlfield_not_string(self):
        f = URLField(required=False)