Skip to content

Commit 7798b96

Browse files
committed
feat: enable db index on advisory_id field
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 43f634c commit 7798b96

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vulnerabilities/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,6 +3013,7 @@ class AdvisoryV2(models.Model):
30133013
blank=False,
30143014
null=False,
30153015
unique=False,
3016+
db_index=True,
30163017
help_text="An advisory is a unique vulnerability identifier in some database, "
30173018
"such as PYSEC-2020-2233",
30183019
)

0 commit comments

Comments
 (0)