Fix validation to allow blank web tree start URL

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2013-02-14 07:26:52 +00:00
parent 45514d387b
commit eebbcf66c1

View File

@ -38,6 +38,7 @@ class SubmitLayerForm(forms.ModelForm):
def clean_vcs_web_tree_base_url(self):
url = self.cleaned_data['vcs_web_tree_base_url'].strip()
if url:
val = URLValidator(verify_exists=False)
val(url)
return url