Skip to content

Commit

Permalink
feat: LEAP-1720: distinguish annotations created using Bulk Labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
triklozoid committed Dec 23, 2024
1 parent 416eedb commit 133f704
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions label_studio/tasks/migrations/0053_annotation_bulk_created.py
Original file line number Diff line number Diff line change
@@ -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",
),
),
]
5 changes: 5 additions & 0 deletions label_studio/tasks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 133f704

Please sign in to comment.