aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Forbes Davis V <caldavis@gmail.com>2011-07-05 22:11:56 -0500
committerCaleb Forbes Davis V <caldavis@gmail.com>2011-07-05 22:11:56 -0500
commit20d82d604620c8aa885ba0f8109a1a1d3dd6632d (patch)
tree8d4260c74e393ec4bd4e724a18e311da7b8dffa4
parent5ed4722de8106a512a4faacfedaae7b8eda7260b (diff)
downloadmediagoblin-20d82d604620c8aa885ba0f8109a1a1d3dd6632d.tar.lz
mediagoblin-20d82d604620c8aa885ba0f8109a1a1d3dd6632d.tar.xz
mediagoblin-20d82d604620c8aa885ba0f8109a1a1d3dd6632d.zip
B #429 - form validation allows blank profile url
-rw-r--r--mediagoblin/edit/forms.py3
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')])