Skip to content

Commit

Permalink
fixup! Implement commit model and migration
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAkhondali committed Jul 5, 2023
1 parent 23d25de commit 5dcb00d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vulnerabilities/migrations/0040_commit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.1.7 on 2023-07-05 15:01
# Generated by Django 4.1.7 on 2023-07-05 17:38

from django.db import migrations, models
import django.db.models.deletion
Expand Down Expand Up @@ -32,7 +32,7 @@ class Migration(migrations.Migration):
),
(
"reference",
models.OneToOneField(
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="vulnerabilities.vulnerabilityreference",
),
Expand Down
2 changes: 1 addition & 1 deletion vulnerabilities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ class Commit(models.Model):
Reference to a commit(s) that fixed the vulnerability
"""

reference = models.OneToOneField(
reference = models.ForeignKey(
VulnerabilityReference,
on_delete=models.CASCADE,
)
Expand Down

0 comments on commit 5dcb00d

Please sign in to comment.