You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dojo/db_migrations/0234_finding_cvssv4_finding_cvssv4_score.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ class Migration(migrations.Migration):
20
20
migrations.AlterField(
21
21
model_name='finding',
22
22
name='cvssv3_score',
23
-
field=models.FloatField(blank=True, help_text='Numerical CVSS3 score for the vulnerability. If the vector is given without a score, the score is calcaulated while saving the finding. The value must be between 0-10.', null=True, validators=[django.core.validators.MinValueValidator(0.0), django.core.validators.MaxValueValidator(10.0)], verbose_name='CVSS3 Score'),
23
+
field=models.FloatField(blank=True, help_text='Numerical CVSSv3 score for the vulnerability. If the vector is given, the score is updated while saving the finding. The value must be between 0-10.', null=True, validators=[django.core.validators.MinValueValidator(0.0), django.core.validators.MaxValueValidator(10.0)], verbose_name='CVSS3 Score'),
24
24
),
25
25
migrations.AddField(
26
26
model_name='finding',
@@ -30,16 +30,16 @@ class Migration(migrations.Migration):
30
30
migrations.AddField(
31
31
model_name='finding',
32
32
name='cvssv4_score',
33
-
field=models.FloatField(blank=True, help_text='Numerical CVSS4 score for the vulnerability. If the vector is given without a score, the score is calcaulated while saving the finding. The value must be between 0-10.', null=True, validators=[django.core.validators.MinValueValidator(0.0), django.core.validators.MaxValueValidator(10.0)], verbose_name='CVSSv4 Score'),
33
+
field=models.FloatField(blank=True, help_text='Numerical CVSSv4 score for the vulnerability. If the vector is given, the score is updated while saving the finding. The value must be between 0-10.', null=True, validators=[django.core.validators.MinValueValidator(0.0), django.core.validators.MaxValueValidator(10.0)], verbose_name='CVSSv4 Score'),
34
34
),
35
35
migrations.AddField(
36
36
model_name='system_settings',
37
37
name='enable_cvss3_display',
38
-
field=models.BooleanField(default=True, help_text='With this setting turned off, CVSS3 fields will be hidden in the user interface.', verbose_name='Enable CVSS3 Display'),
38
+
field=models.BooleanField(blank=False, default=True, help_text='With this setting turned off, CVSS3 fields will be hidden in the user interface.', verbose_name='Enable CVSS3 Display'),
39
39
),
40
40
migrations.AddField(
41
41
model_name='system_settings',
42
42
name='enable_cvss4_display',
43
-
field=models.BooleanField(default=True, help_text='With this setting turned off, CVSS4 fields will be hidden in the user interface.', verbose_name='Enable CVSS4 Display'),
43
+
field=models.BooleanField(blank=False, default=True, help_text='With this setting turned off, CVSS4 fields will be hidden in the user interface.', verbose_name='Enable CVSS4 Display'),
Copy file name to clipboardExpand all lines: dojo/models.py
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2363,7 +2363,7 @@ class Finding(models.Model):
2363
2363
cvssv3_score=models.FloatField(null=True,
2364
2364
blank=True,
2365
2365
verbose_name=_("CVSS3 Score"),
2366
-
help_text=_("Numerical CVSS3 score for the vulnerability. If the vector is given without a score, the score is calcaulated while saving the finding. The value must be between 0-10."),
2366
+
help_text=_("Numerical CVSSv3 score for the vulnerability. If the vector is given, the score is updated while saving the finding. The value must be between 0-10."),
@@ -2374,7 +2374,7 @@ class Finding(models.Model):
2374
2374
cvssv4_score=models.FloatField(null=True,
2375
2375
blank=True,
2376
2376
verbose_name=_("CVSSv4 Score"),
2377
-
help_text=_("Numerical CVSS4 score for the vulnerability. If the vector is given without a score, the score is calcaulated while saving the finding. The value must be between 0-10."),
2377
+
help_text=_("Numerical CVSSv4 score for the vulnerability. If the vector is given, the score is updated while saving the finding. The value must be between 0-10."),
0 commit comments