aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/edit/forms.py
diff options
context:
space:
mode:
authorJef van Schendel <jefvanschendel@gmail.com>2011-06-22 15:32:06 +0200
committerJef van Schendel <jefvanschendel@gmail.com>2011-06-22 15:32:06 +0200
commit69a303a84ce3bc18e4e5a745a07a720fb7b0c73e (patch)
treeb3938072b21f05ea3b40f315d68ab91cd639e535 /mediagoblin/edit/forms.py
parent3efb0848096e00b1d7a82a62b717289efafc95fa (diff)
parentd220f87c120e4c8627a80adaa6fab18ebe85669f (diff)
downloadmediagoblin-69a303a84ce3bc18e4e5a745a07a720fb7b0c73e.tar.lz
mediagoblin-69a303a84ce3bc18e4e5a745a07a720fb7b0c73e.tar.xz
mediagoblin-69a303a84ce3bc18e4e5a745a07a720fb7b0c73e.zip
Merge remote-tracking branch 'gitorious/master'
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)])