From ec8f734065bb8665a5ec155e2120d50ea5101257 Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Mon, 13 Jan 2020 16:23:51 +0300 Subject: [PATCH] Changed CharField(64) -> CharField(4096) for attribute value --- .../migrations/0023_auto_20200113_1323.py | 34 +++++++++++++++++++ cvat/apps/engine/models.py | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 cvat/apps/engine/migrations/0023_auto_20200113_1323.py 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