summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authoradityacp2017-01-02 16:09:34 +0530
committeradityacp2017-01-02 16:09:34 +0530
commitc4f1fad41940acd3274d4559f820d9270a86450c (patch)
tree5052ba4084917f38d9a3c457999b68217e33d2fd /yaksh/models.py
parent9235e68b3a41a5f5327a162662864d0f9a9b66b4 (diff)
downloadonline_test-c4f1fad41940acd3274d4559f820d9270a86450c.tar.gz
online_test-c4f1fad41940acd3274d4559f820d9270a86450c.tar.bz2
online_test-c4f1fad41940acd3274d4559f820d9270a86450c.zip
Fix test case for models and code server
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 5d072fd..b54e6a0 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -327,7 +327,7 @@ class Question(models.Model):
for tc in self.testcase_set.all():
test_case_type = tc.type
test_case_ctype = ContentType.objects.get(app_label="yaksh",
- model=self.test_case_type
+ model=test_case_type
)
test_case = test_case_ctype.get_object_for_this_type(
question=self,