summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/models.py')
-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