Skip to content

Commit

Permalink
Changed CharField(64) -> CharField(4096) for attribute value (cvat-ai…
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev authored and Chris Lee-Messer committed Mar 5, 2020
1 parent 22e6127 commit c0eee4e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions cvat/apps/engine/migrations/0023_auto_20200113_1323.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
2 changes: 1 addition & 1 deletion cvat/apps/engine/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0eee4e

Please sign in to comment.