Skip to content

Commit f39d15f

Browse files
committed
Update vulnerabilities/models.py
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
1 parent 7ed79d3 commit f39d15f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vulnerabilities/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class PackageRelatedVulnerability(models.Model):
145145
is_vulnerable = models.BooleanField()
146146

147147
def __str__(self):
148-
return self.package.package_url + " " + self.vulnerability.cve_id
148+
return f"{self.package.package_url} {self.vulnerability.cve_id}"
149149

150150
class Meta:
151151
unique_together = ("package", "vulnerability")

0 commit comments

Comments
 (0)