Skip to content

Commit 3f01210

Browse files
committed
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.
1 parent d33fb34 commit 3f01210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class CVSS(models.Model):
8484
score = models.DecimalField(max_digits=3, decimal_places=1, null=True)
8585
severity = models.CharField(max_length=128, blank=True, null=True)
8686
version = models.DecimalField(max_digits=2, decimal_places=1)
87-
vector_string = models.CharField(max_length=128, blank=True, null=True)
87+
vector_string = models.CharField(max_length=255, blank=True, null=True)
8888

8989
class Meta:
9090
unique_together = ['score', 'severity', 'version', 'vector_string']

0 commit comments

Comments
 (0)