1
Fork 0

restore validators

This commit is contained in:
Jake Howard 2016-11-28 20:25:40 +00:00
parent 5d99514c7d
commit 3b495783b5

View file

@ -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,