From 3b495783b5dddd9d491b896bb4eed41c9858bf6b Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 28 Nov 2016 20:25:40 +0000 Subject: [PATCH] restore validators --- project/projects/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/projects/models.py b/project/projects/models.py index 71f81bf..dc7235f 100644 --- a/project/projects/models.py +++ b/project/projects/models.py @@ -33,8 +33,8 @@ class ProjectPage(Entity): ) summary = models.CharField(max_length=500) body = RichTextField() - project_url = models.URLField(blank=True) - download_url = models.URLField(blank=True) + project_url = models.URLField(validators=[validate_url], blank=True) + download_url = models.URLField(validators=[validate_url], blank=True) asset = models.ForeignKey( 'wagtaildocs.Document', null=True,