From 27f4aa99d2295e2030e3e77779bec8b1f280fa43 Mon Sep 17 00:00:00 2001 From: Marcus Furlong Date: Wed, 4 Mar 2026 21:03:58 -0500 Subject: [PATCH] fix cvss model to match released migration 0010 eb09bfe fixed the migrations but missed updating the model definition. vector_string max_length=128 in the model would reject cvss v4.0 vectors at the python level and cause makemigrations to generate a backwards migration. no new migration needed as 0010 already set the db column to 255. --- security/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/models.py b/security/models.py index 6fd47389..4a19f9ca 100644 --- a/security/models.py +++ b/security/models.py @@ -84,7 +84,7 @@ class CVSS(models.Model): score = models.DecimalField(max_digits=3, decimal_places=1, null=True) severity = models.CharField(max_length=128, blank=True, null=True) version = models.DecimalField(max_digits=2, decimal_places=1) - vector_string = models.CharField(max_length=128, blank=True, null=True) + vector_string = models.CharField(max_length=255, blank=True, null=True) class Meta: unique_together = ['score', 'severity', 'version', 'vector_string']