Merge remote branch 'remotes/gullydwarf-cfdv/437_slug_shouldnt_be_empty'

This commit is contained in:
Christopher Allan Webber 2011-07-09 09:20:22 -05:00
commit 83d3922b6e

View File

@ -23,7 +23,8 @@ class EditForm(wtforms.Form):
'Title', 'Title',
[wtforms.validators.Length(min=0, max=500)]) [wtforms.validators.Length(min=0, max=500)])
slug = wtforms.TextField( slug = wtforms.TextField(
'Slug') 'Slug',
[wtforms.validators.Required(message="The slug can't be empty")])
description = wtforms.TextAreaField('Description of this work') description = wtforms.TextAreaField('Description of this work')
class EditProfileForm(wtforms.Form): class EditProfileForm(wtforms.Form):