summaryrefslogtreecommitdiff
path: root/tests/modeltests/validation/models.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-09-10 01:08:24 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-09-10 01:08:24 +0000
commit1a76dbefdfc60e2d5954c0ba614c3d054ba9c3f0 (patch)
tree053c60d65b333df990de1250af0085ec75baf953 /tests/modeltests/validation/models.py
parentfbe2eead2fa9d808658ca582241bcacb02618840 (diff)
[1.3.X] Altered the behavior of URLField to avoid a potential DOS vector, and to avoid potential leakage of local filesystem data. A security announcement will be made shortly.
Backport of r16760 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/validation/models.py')
-rw-r--r--tests/modeltests/validation/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/modeltests/validation/models.py b/tests/modeltests/validation/models.py
index 861d1440fe..91ad87203d 100644
--- a/tests/modeltests/validation/models.py
+++ b/tests/modeltests/validation/models.py
@@ -15,6 +15,7 @@ class ModelToValidate(models.Model):
parent = models.ForeignKey('self', blank=True, null=True, limit_choices_to={'number': 10})
email = models.EmailField(blank=True)
url = models.URLField(blank=True)
+ url_verify = models.URLField(blank=True, verify_exists=True)
f_with_custom_validator = models.IntegerField(blank=True, null=True, validators=[validate_answer_to_universe])
def clean(self):