Skip to content

Commit

Permalink
add blank=True to fields of Vulnerability and Package (#433)
Browse files Browse the repository at this point in the history
add `blank=True` to Vulnerability.old_vulnerability_id and Package.qualifiers

Signed-off-by: 司芳源 <sify1221@gmail.com>
  • Loading branch information
sify21 authored Apr 22, 2021
1 parent fd15724 commit cac1aa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vulnerabilities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class Vulnerability(models.Model):
help_text="empty if no CVE else VC id",
unique=True,
null=True,
blank=True,
)
summary = models.TextField(
help_text="Summary of the vulnerability",
Expand Down Expand Up @@ -162,6 +163,7 @@ class Meta:
"Extra qualifying data for a package such as the name of an OS, "
"architecture, distro, etc."
),
blank=True,
null=False,
)

Expand Down

0 comments on commit cac1aa3

Please sign in to comment.