Skip to content

Commit

Permalink
align serializer max length of attribute value with the model (cvat-a…
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro authored and Chris Lee-Messer committed Mar 5, 2020
1 parent 82cbfa8 commit fde944b
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 fde944b

Please sign in to comment.