aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/edit/forms.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-06-21 23:22:16 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-06-21 23:22:16 -0500
commit3208bea54cc8795ab4d8b35857fd40a55582358d (patch)
tree0427c2eba68865bb270d3b7161b218303ed6fb03 /mediagoblin/edit/forms.py
parent29f1333e722c10d3eff106bd64bb2ded0207e975 (diff)
parent0472653ee4763e2f045632d49a9eed729a491f97 (diff)
downloadmediagoblin-3208bea54cc8795ab4d8b35857fd40a55582358d.tar.lz
mediagoblin-3208bea54cc8795ab4d8b35857fd40a55582358d.tar.xz
mediagoblin-3208bea54cc8795ab4d8b35857fd40a55582358d.zip
Merge remote branch 'refs/remotes/gullydwarf-cfdv/is315'
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)])