mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 16:12:13 +00:00
tag字段长度限制修改为30
This commit is contained in:
parent
7527c78122
commit
5fd6af52cf
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user