aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/edit/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/edit/forms.py')
-rw-r--r--mediagoblin/edit/forms.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py
index ea25141d..fb4930a2 100644
--- a/mediagoblin/edit/forms.py
+++ b/mediagoblin/edit/forms.py
@@ -25,3 +25,10 @@ class EditForm(wtforms.Form):
slug = wtforms.TextField(
'Slug')
description = wtforms.TextAreaField('Description of this work')
+
+class EditProfileForm(wtforms.Form):
+ url = wtforms.TextField(
+ 'website URL',
+ [wtforms.validators.URL(message='Improperly formed URL')])
+ bio = wtforms.TextAreaField('bio',
+ [wtforms.validators.Length(min=0, max=500)])