Merge remote-tracking branch 'origin/master' into is315
[mediagoblin.git] / mediagoblin / edit / forms.py
index ea25141d654eca79d1c7bd7e794902c96639dc89..fb4930a2ce2dfb4ca9a891c9678391d7ab36d292 100644 (file)
@@ -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)])