增加编辑题目spj相关的逻辑

This commit is contained in:
virusdefender
2016-04-04 17:06:42 +08:00
parent d7532ad446
commit f69023a0f3
4 changed files with 23 additions and 3 deletions

View File

@@ -128,6 +128,9 @@ class ProblemAdminAPIView(APIView):
problem.source = data["source"]
problem.time_limit = data["time_limit"]
problem.memory_limit = data["memory_limit"]
problem.spj = data["spj"]
problem.spj_language = data["spj_language"]
problem.spj_code = data["spj_code"]
problem.difficulty = data["difficulty"]
problem.samples = json.dumps(data["samples"])
problem.hint = data["hint"]