Skip to content

Commit cc79e5e

Browse files
committed
feat: add fields to track todos associated with curation advisory
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 3c10f62 commit cc79e5e

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Generated by Django 5.2.11 on 2026-08-06 17:21
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("vulnerabilities", "0141_advisorymitigations"),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name="advisoryv2",
15+
name="is_curation",
16+
field=models.BooleanField(
17+
db_index=True,
18+
default=False,
19+
help_text="Indicates whether this is a curation advisory.",
20+
),
21+
),
22+
migrations.AddField(
23+
model_name="advisoryv2",
24+
name="resolves_todos",
25+
field=models.ManyToManyField(
26+
help_text="A list of Advisory ToDos resolved by this advisory.",
27+
related_name="resolved_in_advisories",
28+
to="vulnerabilities.advisorytodov2",
29+
),
30+
),
31+
]

vulnerabilities/models.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3213,6 +3213,20 @@ class AdvisoryV2(models.Model):
32133213
help_text="A list of patches associated with this advisory.",
32143214
)
32153215

3216+
resolves_todos = models.ManyToManyField(
3217+
AdvisoryToDoV2,
3218+
related_name="resolved_in_advisories",
3219+
help_text="A list of Advisory ToDos resolved by this advisory.",
3220+
)
3221+
3222+
is_curation = models.BooleanField(
3223+
default=False,
3224+
blank=False,
3225+
null=False,
3226+
db_index=True,
3227+
help_text="Indicates whether this is a curation advisory.",
3228+
)
3229+
32163230
date_published = models.DateTimeField(
32173231
blank=True,
32183232
null=True,

0 commit comments

Comments
 (0)