projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a1082e
)
Fix #994: Also set self.data when no change made to URL.
author
Ben Sturmfels
<ben@sturm.com.au>
Fri, 4 Sep 2015 13:31:53 +0000
(23:31 +1000)
committer
Berker Peksag
<berker.peksag@gmail.com>
Tue, 8 Sep 2015 10:22:55 +0000
(13:22 +0300)
This partially reverts
2a1082e3
mediagoblin/edit/forms.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/edit/forms.py
b/mediagoblin/edit/forms.py
index f7bb2d304cf14b6064907821c782cce6d8858e27..83e83c3c82b408d306408429f3f52d9e414de469 100644
(file)
--- a/
mediagoblin/edit/forms.py
+++ b/
mediagoblin/edit/forms.py
@@
-30,7
+30,8
@@
class WebsiteField(wtforms.StringField):
if valuelist:
data = valuelist[0]
if not data.startswith((u'http://', u'https://')):
- self.data = u'http://' + data
+ data = u'http://' + data
+ self.data = data
else:
super(WebsiteField, self).process_formdata(valuelist)