From 0f671a57818b3dfc569bc6f65b1a92f9e09883f1 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Mon, 23 Jun 2014 20:09:36 +0200 Subject: [PATCH] Required fields for application form --- blender-bfct/application/controllers/main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/blender-bfct/application/controllers/main.py b/blender-bfct/application/controllers/main.py index b645ebd..8af89d0 100644 --- a/blender-bfct/application/controllers/main.py +++ b/blender-bfct/application/controllers/main.py @@ -14,16 +14,16 @@ from wtforms.validators import url class ApplicationForm(Form): - network_profile = TextField('Blender Network Profile', validators=[DataRequired()]) - website = URLField(validators=[url()]) + network_profile = TextField('Blender Network Profile') + website = URLField(validators=[url(), DataRequired()]) city_country = TextField('City and Country', validators=[DataRequired()]) teaching = BooleanField('Teaching') institution_name = TextField('School or institution name') skills = SelectMultipleField('Areas of expertise', coerce=int) - video_example = URLField(validators=[url()]) - written_example = URLField(validators=[url()]) - portfolio_cv = URLField(validators=[url()]) - bio_message = TextAreaField('Your message for the board') + video_example = URLField(validators=[url(), DataRequired()]) + written_example = URLField(validators=[url(), DataRequired()]) + portfolio_cv = URLField(validators=[url(), DataRequired()]) + bio_message = TextAreaField('Your message for the board', validators=[DataRequired()]) # Views