tag字段长度限制修改为30

This commit is contained in:
李扬 2017-01-29 11:27:41 +08:00 committed by GitHub
parent 7527c78122
commit 5fd6af52cf

View File

@ -31,7 +31,7 @@ class CreateProblemSerializer(serializers.Serializer):
spj_language = serializers.IntegerField(required=False, default=None)
spj_code = serializers.CharField(required=False, default=None)
difficulty = serializers.IntegerField()
tags = serializers.ListField(child=serializers.CharField(max_length=10))
tags = serializers.ListField(child=serializers.CharField(max_length=30))
hint = serializers.CharField(allow_blank=True)
source = serializers.CharField(max_length=100, required=False, default=None)
visible = serializers.BooleanField()
@ -80,7 +80,7 @@ class EditProblemSerializer(serializers.Serializer):
spj_language = serializers.IntegerField(required=False, default=None)
spj_code = serializers.CharField(required=False, default=None)
difficulty = serializers.IntegerField()
tags = serializers.ListField(child=serializers.CharField(max_length=20))
tags = serializers.ListField(child=serializers.CharField(max_length=30))
samples = ProblemSampleSerializer()
hint = serializers.CharField(allow_blank=True)
visible = serializers.BooleanField()