summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorankitjavalkar2021-01-16 23:42:30 +0530
committerankitjavalkar2021-01-16 23:42:30 +0530
commit3966ae20fc68041721f97c45ff92102ed5729aee (patch)
tree979df38d5ad8f8a830adf63a546d21d523d85d6f /yaksh
parent7decc133e0f16f355f4e158fc3208bf7c5da3ee9 (diff)
downloadonline_test-3966ae20fc68041721f97c45ff92102ed5729aee.tar.gz
online_test-3966ae20fc68041721f97c45ff92102ed5729aee.tar.bz2
online_test-3966ae20fc68041721f97c45ff92102ed5729aee.zip
Fix failing test case
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index bdac927..00bca5b 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -2940,7 +2940,7 @@ class TOCManager(models.Manager):
else:
que = Question.objects.create(**content)
for test_case in test_cases:
- test_case_type = test_case.pop('type')
+ test_case_type = test_case.pop('test_case_type')
model_class = get_model_class(test_case_type)
model_class.objects.get_or_create(
question=que, **test_case, type=test_case_type