diff --git a/label_studio/tasks/migrations/0053_annotation_bulk_created.py b/label_studio/tasks/migrations/0053_annotation_bulk_created.py new file mode 100644 index 000000000000..759307869393 --- /dev/null +++ b/label_studio/tasks/migrations/0053_annotation_bulk_created.py @@ -0,0 +1,22 @@ +# Generated by Django 4.2.16 on 2024-12-23 13:43 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("tasks", "0052_auto_20241030_1757"), + ] + + operations = [ + migrations.AddField( + model_name="annotation", + name="bulk_created", + field=models.BooleanField( + default=False, + help_text="Annotation was created in bulk mode", + verbose_name="bulk created", + ), + ), + ] diff --git a/label_studio/tasks/models.py b/label_studio/tasks/models.py index aa9f7f413f16..5d53dcc7168e 100644 --- a/label_studio/tasks/models.py +++ b/label_studio/tasks/models.py @@ -684,6 +684,11 @@ class Annotation(AnnotationMixin, models.Model): default=None, null=True, ) + bulk_created = models.BooleanField( + _('bulk created'), + default=False, + help_text='Annotation was created in bulk mode', + ) class Meta: db_table = 'task_completion'