aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/edit/forms.py
diff options
context:
space:
mode:
authorChris Moylan <chris@chrismoylan.com>2011-06-22 21:40:17 -0500
committerChris Moylan <chris@chrismoylan.com>2011-06-22 21:40:17 -0500
commitdcebe4b032453b31db93e0796c84de7dc8bdb005 (patch)
tree7608cd77fafd6ffb6179e8d7bd1c50bfcd9cdfb5 /mediagoblin/edit/forms.py
parent1975b5dd1fdae5ddb2819b8c67a29f9c374fce40 (diff)
parent54de443a6a6cd673cfef0efa73a9d5e6fc6cde7c (diff)
downloadmediagoblin-dcebe4b032453b31db93e0796c84de7dc8bdb005.tar.lz
mediagoblin-dcebe4b032453b31db93e0796c84de7dc8bdb005.tar.xz
mediagoblin-dcebe4b032453b31db93e0796c84de7dc8bdb005.zip
Merge branch 'master' into test_submission_views_365
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..2efdb9e4 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):
+ bio = wtforms.TextAreaField('Bio',
+ [wtforms.validators.Length(min=0, max=500)])
+ url = wtforms.TextField(
+ 'Website',
+ [wtforms.validators.URL(message='Improperly formed URL')])