去除部分提交限制

This commit is contained in:
virusdefender 2018-05-17 01:22:18 +08:00
parent fea77ce92b
commit 08ea52afa9
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class CreateProblemCodeTemplateSerializer(serializers.Serializer):
class CreateOrEditProblemSerializer(serializers.Serializer):
_id = serializers.CharField(max_length=32, allow_blank=True, allow_null=True)
title = serializers.CharField(max_length=128)
title = serializers.CharField(max_length=1024)
description = serializers.CharField()
input_description = serializers.CharField()
output_description = serializers.CharField()

View File

@ -6,7 +6,7 @@ from judge.languages import language_names
class CreateSubmissionSerializer(serializers.Serializer):
problem_id = serializers.IntegerField()
language = serializers.ChoiceField(choices=language_names)
code = serializers.CharField(max_length=20000)
code = serializers.CharField(max_length=1024 * 1024)
contest_id = serializers.IntegerField(required=False)
captcha = serializers.CharField(required=False)