projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ed4722
)
B #429 - form validation allows blank profile url
author
Caleb Forbes Davis V
<caldavis@gmail.com>
Wed, 6 Jul 2011 03:11:56 +0000
(22:11 -0500)
committer
Caleb Forbes Davis V
<caldavis@gmail.com>
Wed, 6 Jul 2011 03:11:56 +0000
(22:11 -0500)
mediagoblin/edit/forms.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/edit/forms.py
b/mediagoblin/edit/forms.py
index 2efdb9e4380d29c84c0b90a5d9505bc3be00febb..d5e7f0a99821670799c9445f76d83e3d0ea4ba66 100644
(file)
--- 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')])