diff options
author | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-07-05 22:11:56 -0500 |
---|---|---|
committer | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-07-05 22:11:56 -0500 |
commit | 20d82d604620c8aa885ba0f8109a1a1d3dd6632d (patch) | |
tree | 8d4260c74e393ec4bd4e724a18e311da7b8dffa4 | |
parent | 5ed4722de8106a512a4faacfedaae7b8eda7260b (diff) | |
download | mediagoblin-20d82d604620c8aa885ba0f8109a1a1d3dd6632d.tar.lz mediagoblin-20d82d604620c8aa885ba0f8109a1a1d3dd6632d.tar.xz mediagoblin-20d82d604620c8aa885ba0f8109a1a1d3dd6632d.zip |
B #429 - form validation allows blank profile url
-rw-r--r-- | mediagoblin/edit/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index 2efdb9e4..d5e7f0a9 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -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')]) |