Skip to content

Commit

Permalink
align serializer max length of attribute value with the model (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro authored and nmanovic committed Jan 20, 2020
1 parent 7bc22a7 commit 7cf755f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/apps/engine/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ class ImageMetaSerializer(serializers.Serializer):

class AttributeValSerializer(serializers.Serializer):
spec_id = serializers.IntegerField()
value = serializers.CharField(max_length=64, allow_blank=True)
value = serializers.CharField(max_length=4096, allow_blank=True)

def to_internal_value(self, data):
data['value'] = str(data['value'])
Expand Down

0 comments on commit 7cf755f

Please sign in to comment.