Fix #994: Also set self.data when no change made to URL.
This partially reverts 2a1082e3
This commit is contained in:
parent
2a1082e3dc
commit
17f5902a4c
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user