Skip to content

Commit

Permalink
Merge pull request #309 from Shivam-316/main
Browse files Browse the repository at this point in the history
Verbose name plural for 'PackageRelatedVulnerability'
  • Loading branch information
sbs2001 authored Jan 14, 2021
2 parents 9b5f40e + dba5fd7 commit f94d797
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ bin
include
lib64
share
Pipfile

# editors
.vscode/

# pytest
.pytest_cache
3 changes: 2 additions & 1 deletion vulnerabilities/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.0.7 on 2020-09-14 06:17
# Generated by Django 3.0.7 on 2021-01-11 17:14

import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
Expand Down Expand Up @@ -64,6 +64,7 @@ class Migration(migrations.Migration):
('vulnerability', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='vulnerabilities.Vulnerability')),
],
options={
'verbose_name_plural': 'PackageRelatedVulnerabilities',
'unique_together': {('package', 'vulnerability')},
},
),
Expand Down
1 change: 1 addition & 0 deletions vulnerabilities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class PackageRelatedVulnerability(models.Model):

class Meta:
unique_together = ("package", "vulnerability")
verbose_name_plural = "PackageRelatedVulnerabilities"


class ImportProblem(models.Model):
Expand Down

0 comments on commit f94d797

Please sign in to comment.