Sorry, that OptionalField belonged there.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 9 Jul 2011 22:16:18 +0000 (17:16 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 9 Jul 2011 22:16:18 +0000 (17:16 -0500)
I am a bad person and am not allowed to commit anything else today.

mediagoblin/edit/forms.py

index fdbd5c7581690dcdcea9fc2ab1ec8f38654aea94..0ed52af11ea4a24b6265b735197fdc9006d2d454 100644 (file)
@@ -32,4 +32,5 @@ class EditProfileForm(wtforms.Form):
         [wtforms.validators.Length(min=0, max=500)])
     url = wtforms.TextField(
         'Website',
-        [wtforms.validators.URL(message='Improperly formed URL')])
+        [wtforms.validators.Optional(),
+         wtforms.validators.URL(message='Improperly formed URL')])