diff --git a/vulnerabilities/models.py b/vulnerabilities/models.py index 0c79ef79c..768b5149f 100644 --- a/vulnerabilities/models.py +++ b/vulnerabilities/models.py @@ -112,7 +112,7 @@ def scores(self): return VulnerabilitySeverity.objects.filter(reference=self.id) def save(self, *args, **kwargs): - if self.id: + if self.id or not self.url: super(VulnerabilityReference, self).save(*args, **kwargs) else: url_parsed = urlpy.parse(self.url)