@@ -29,8 +29,8 @@ class Vulnerability(models.Model):
2929 A software vulnerability with minimal information.
3030 Identifiers are stored as VulnerabilityReference.
3131 """
32- summary = models .CharField (max_length = 50 , help_text = " Summary of the vulnerability" , blank = True )
33- cvss = models .FloatField (max_length = 50 , help_text = " CVSS Score" , null = True )
32+ summary = models .CharField (max_length = 50 , help_text = ' Summary of the vulnerability' , blank = True )
33+ cvss = models .FloatField (max_length = 50 , help_text = ' CVSS Score' , null = True )
3434
3535 def __str__ (self ):
3636 return self .summary
@@ -43,9 +43,9 @@ class VulnerabilityReference(models.Model):
4343 at the NVD, a bug id and similar references.
4444 """
4545 vulnerability = models .ForeignKey ('Vulnerability' )
46- source = models .CharField (max_length = 50 , help_text = "Source's name eg:NVD" , blank = True )
47- reference_id = models .CharField (max_length = 50 , help_text = " Reference ID, eg:CVE-ID" , blank = True )
48- url = models .URLField (max_length = 1024 , help_text = " URL of Vulnerability data" , blank = True )
46+ source = models .CharField (max_length = 50 , help_text = 'Source(s) name eg:NVD' , blank = True )
47+ reference_id = models .CharField (max_length = 50 , help_text = ' Reference ID, eg:CVE-ID' , blank = True )
48+ url = models .URLField (max_length = 1024 , help_text = ' URL of Vulnerability data' , blank = True )
4949
5050 class Meta :
5151 unique_together = ('vulnerability' , 'source' , 'reference_id' )
@@ -73,9 +73,9 @@ class Package(models.Model):
7373 A software package with minimal identifying information.
7474 Other identifiers are stored as PackageReference.
7575 """
76- platform = models .CharField (max_length = 50 , help_text = " Package platform eg:maven" , blank = True )
77- name = models .CharField (max_length = 50 , help_text = " Package name" , blank = True )
78- version = models .CharField (max_length = 50 , help_text = " Package version" , blank = True )
76+ platform = models .CharField (max_length = 50 , help_text = ' Package platform eg:maven' , blank = True )
77+ name = models .CharField (max_length = 50 , help_text = ' Package name' , blank = True )
78+ version = models .CharField (max_length = 50 , help_text = ' Package version' , blank = True )
7979
8080 def __str__ (self ):
8181 return self .name
@@ -89,22 +89,22 @@ class PackageReference(models.Model):
8989 package = models .ForeignKey ('Package' )
9090 repository = models .CharField (
9191 max_length = 50 ,
92- help_text = " Repository URL eg:http://central.maven.org" ,
92+ help_text = ' Repository URL eg:http://central.maven.org' ,
9393 blank = True ,
9494 )
9595 platform = models .CharField (
9696 max_length = 50 ,
97- help_text = " Platform eg:maven" ,
97+ help_text = ' Platform eg:maven' ,
9898 blank = True ,
9999 )
100100 name = models .CharField (
101101 max_length = 50 ,
102- help_text = " Package reference name eg:org.apache.commons.io" ,
102+ help_text = ' Package reference name eg:org.apache.commons.io' ,
103103 blank = True ,
104104 )
105105 version = models .CharField (
106106 max_length = 50 ,
107- help_text = " Reference version" ,
107+ help_text = ' Reference version' ,
108108 blank = True ,
109109 )
110110
0 commit comments