diff --git a/changelog.d/20240413_031652_ritikraj2699_attribute_text_length_limited_for_adding_values.md b/changelog.d/20240413_031652_ritikraj2699_attribute_text_length_limited_for_adding_values.md new file mode 100644 index 000000000000..eaa7717bd364 --- /dev/null +++ b/changelog.d/20240413_031652_ritikraj2699_attribute_text_length_limited_for_adding_values.md @@ -0,0 +1,4 @@ +### Changed + +- Doubled the maximum length of the attribute values. + () diff --git a/cvat/apps/engine/migrations/0079_alter_attributespec_values.py b/cvat/apps/engine/migrations/0079_alter_attributespec_values.py new file mode 100644 index 000000000000..24d6f96470b4 --- /dev/null +++ b/cvat/apps/engine/migrations/0079_alter_attributespec_values.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.11 on 2024-04-12 21:44 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("engine", "0078_alter_cloudstorage_credentials"), + ] + + operations = [ + migrations.AlterField( + model_name="attributespec", + name="values", + field=models.CharField(blank=True, max_length=8192), + ), + ] diff --git a/cvat/apps/engine/models.py b/cvat/apps/engine/models.py index 907937382a1b..14cbb73f7bf1 100644 --- a/cvat/apps/engine/models.py +++ b/cvat/apps/engine/models.py @@ -857,7 +857,7 @@ class AttributeSpec(models.Model): input_type = models.CharField(max_length=16, choices=AttributeType.choices()) default_value = models.CharField(blank=True, max_length=128) - values = models.CharField(blank=True, max_length=4096) + values = models.CharField(blank=True, max_length=8192) class Meta: default_permissions = ()