Skip to content

Commit 5f01615

Browse files
add null
1 parent 4c1cbe2 commit 5f01615

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

label_studio/ml_models/migrations/0017_modelrun_recreate_predictions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 5.1.8 on 2025-05-07 15:41
1+
# Generated by Django 5.1.8 on 2025-05-07 20:22
22

33
from django.db import migrations, models
44

@@ -14,7 +14,7 @@ class Migration(migrations.Migration):
1414
model_name="modelrun",
1515
name="recreate_predictions",
1616
field=models.BooleanField(
17-
default=True, verbose_name="recreate predictions"
17+
default=None, null=True, verbose_name="recreate predictions"
1818
),
1919
),
2020
]

label_studio/ml_models/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class ModelRunStatus(models.TextChoices):
184184

185185
completed_at = models.DateTimeField(_('completed at'), null=True, default=None)
186186

187-
recreate_predictions = models.BooleanField(_('recreate predictions'), default=True)
187+
recreate_predictions = models.BooleanField(_('recreate predictions'), null=True, default=None)
188188

189189
def has_permission(self, user):
190190
return user.active_organization == self.organization

0 commit comments

Comments
 (0)