mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 13:14:46 +02:00
Fix validation to allow blank web tree start URL
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
45514d387b
commit
eebbcf66c1
|
@ -38,8 +38,9 @@ class SubmitLayerForm(forms.ModelForm):
|
||||||
|
|
||||||
def clean_vcs_web_tree_base_url(self):
|
def clean_vcs_web_tree_base_url(self):
|
||||||
url = self.cleaned_data['vcs_web_tree_base_url'].strip()
|
url = self.cleaned_data['vcs_web_tree_base_url'].strip()
|
||||||
val = URLValidator(verify_exists=False)
|
if url:
|
||||||
val(url)
|
val = URLValidator(verify_exists=False)
|
||||||
|
val(url)
|
||||||
return url
|
return url
|
||||||
|
|
||||||
def clean_maintainers(self):
|
def clean_maintainers(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user