Skip to content

Commit

Permalink
Update risk_score help_text #98
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Nov 15, 2024
1 parent 666ef3d commit 4458029
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='component',
name='risk_score',
field=models.DecimalField(blank=True, decimal_places=1, help_text='Risk score between 0.00 and 10.00, where higher values indicate greater vulnerability risk for the package.', max_digits=3, null=True),
field=models.DecimalField(blank=True, decimal_places=1, help_text='Risk score between 0.0 and 10.0, where higher values indicate greater vulnerability risk for the package.', max_digits=3, null=True),
),
migrations.AlterField(
model_name='package',
name='risk_score',
field=models.DecimalField(blank=True, decimal_places=1, help_text='Risk score between 0.00 and 10.00, where higher values indicate greater vulnerability risk for the package.', max_digits=3, null=True),
field=models.DecimalField(blank=True, decimal_places=1, help_text='Risk score between 0.0 and 10.0, where higher values indicate greater vulnerability risk for the package.', max_digits=3, null=True),
),
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load i18n %}
<dl class="row mb-3">
<dt class="col-sm-1 text-end pt-2 pe-0">
<span class="help_text" data-bs-placement="right" data-bs-toggle="tooltip" data-bs-title="Risk score between 0.00 and 10.00, where higher values indicate greater vulnerability risk for the package.">
<span class="help_text" data-bs-placement="right" data-bs-toggle="tooltip" data-bs-title="Risk score between 0.0 and 10.0, where higher values indicate greater vulnerability risk for the package.">
Risk score
</span>
</dt>
Expand Down
2 changes: 1 addition & 1 deletion vulnerabilities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ class AffectedByVulnerabilityMixin(models.Model):
max_digits=3,
decimal_places=1,
help_text=_(
"Risk score between 0.00 and 10.00, where higher values "
"Risk score between 0.0 and 10.0, where higher values "
"indicate greater vulnerability risk for the package."
),
)
Expand Down

0 comments on commit 4458029

Please sign in to comment.