diff options
author | ankitjavalkar | 2021-01-16 23:42:30 +0530 |
---|---|---|
committer | ankitjavalkar | 2021-01-16 23:42:30 +0530 |
commit | 3966ae20fc68041721f97c45ff92102ed5729aee (patch) | |
tree | 979df38d5ad8f8a830adf63a546d21d523d85d6f /yaksh/models.py | |
parent | 7decc133e0f16f355f4e158fc3208bf7c5da3ee9 (diff) | |
download | online_test-3966ae20fc68041721f97c45ff92102ed5729aee.tar.gz online_test-3966ae20fc68041721f97c45ff92102ed5729aee.tar.bz2 online_test-3966ae20fc68041721f97c45ff92102ed5729aee.zip |
Fix failing test case
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 2 |
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 |