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

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

No files matched your search

+3
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"]