diff --git a/cvat/apps/engine/migrations/0023_auto_20200113_1323.py b/cvat/apps/engine/migrations/0023_auto_20200113_1323.py new file mode 100644 index 000000000000..4089eb1a1a66 --- /dev/null +++ b/cvat/apps/engine/migrations/0023_auto_20200113_1323.py @@ -0,0 +1,34 @@ +# Generated by Django 2.2.8 on 2020-01-13 13:23 + +import cvat.apps.engine.models +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('engine', '0022_auto_20191004_0817'), + ] + + operations = [ + migrations.AlterField( + model_name='labeledimageattributeval', + name='value', + field=cvat.apps.engine.models.SafeCharField(max_length=4096), + ), + migrations.AlterField( + model_name='labeledshapeattributeval', + name='value', + field=cvat.apps.engine.models.SafeCharField(max_length=4096), + ), + migrations.AlterField( + model_name='labeledtrackattributeval', + name='value', + field=cvat.apps.engine.models.SafeCharField(max_length=4096), + ), + migrations.AlterField( + model_name='trackedshapeattributeval', + name='value', + field=cvat.apps.engine.models.SafeCharField(max_length=4096), + ), + ] diff --git a/cvat/apps/engine/models.py b/cvat/apps/engine/models.py index 8b6f63d8480f..d27867957afa 100644 --- a/cvat/apps/engine/models.py +++ b/cvat/apps/engine/models.py @@ -238,7 +238,7 @@ class AttributeVal(models.Model): # TODO: add a validator here to be sure that it corresponds to self.label id = models.BigAutoField(primary_key=True) spec = models.ForeignKey(AttributeSpec, on_delete=models.CASCADE) - value = SafeCharField(max_length=64) + value = SafeCharField(max_length=4096) class Meta: abstract = True