B #429 - form validation allows blank profile url
authorCaleb Forbes Davis V <caldavis@gmail.com>
Wed, 6 Jul 2011 03:11:56 +0000 (22:11 -0500)
committerCaleb Forbes Davis V <caldavis@gmail.com>
Wed, 6 Jul 2011 03:11:56 +0000 (22:11 -0500)
mediagoblin/edit/forms.py

index 2efdb9e4380d29c84c0b90a5d9505bc3be00febb..d5e7f0a99821670799c9445f76d83e3d0ea4ba66 100644 (file)
@@ -31,4 +31,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')])