Skip to content

Commit cac1aa3

Browse files
authored
add blank=True to fields of Vulnerability and Package (#433)
add `blank=True` to Vulnerability.old_vulnerability_id and Package.qualifiers Signed-off-by: 司芳源 <sify1221@gmail.com>
1 parent fd15724 commit cac1aa3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vulnerabilities/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class Vulnerability(models.Model):
5454
help_text="empty if no CVE else VC id",
5555
unique=True,
5656
null=True,
57+
blank=True,
5758
)
5859
summary = models.TextField(
5960
help_text="Summary of the vulnerability",
@@ -162,6 +163,7 @@ class Meta:
162163
"Extra qualifying data for a package such as the name of an OS, "
163164
"architecture, distro, etc."
164165
),
166+
blank=True,
165167
null=False,
166168
)
167169

0 commit comments

Comments
 (0)