修复部分 bug

This commit is contained in:
virusdefender 2016-01-08 23:32:55 +08:00
parent 6aaa31386b
commit 5158db7f84

View File

@ -21,8 +21,8 @@ class AdminJudgeServerAPIView(APIView):
data = serializer.data
judge_server = JudgeServer.objects.create(name=data["name"], ip=data["ip"], port=data["port"],
max_instance_number=data["max_instance_number"],
token=data["token"],
created_by=request.user)
left_instance_number=data["max_instance_number"],
token=data["token"])
return success_response(JudgesSerializer(judge_server).data)
else:
return serializer_invalid_response(serializer)