summaryrefslogtreecommitdiff
path: root/testapp/exam/models.py
diff options
context:
space:
mode:
authorankitjavalkar2015-04-30 12:41:17 +0530
committerankitjavalkar2015-05-11 16:08:06 +0530
commit3e29dc7f6df7019562b179872b43cb13c7483738 (patch)
treef3ce37bc01aa8ffaf15a5ee380cbb371a74f4188 /testapp/exam/models.py
parentd8847656ba79e51c96c6e3650374aaf616c375dc (diff)
downloadonline_test-3e29dc7f6df7019562b179872b43cb13c7483738.tar.gz
online_test-3e29dc7f6df7019562b179872b43cb13c7483738.tar.bz2
online_test-3e29dc7f6df7019562b179872b43cb13c7483738.zip
- Seperate testcases, Modify views, models, templates for compatibility
- Change functions names in code_evaluator
Diffstat (limited to 'testapp/exam/models.py')
-rw-r--r--testapp/exam/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testapp/exam/models.py b/testapp/exam/models.py
index 51e773a..a60550c 100644
--- a/testapp/exam/models.py
+++ b/testapp/exam/models.py
@@ -61,7 +61,7 @@ class Question(models.Model):
points = models.FloatField(default=1.0)
# Answer for MCQs.
- solution = models.TextField(blank=True)
+ test = models.TextField(blank=True)
# Test cases file paths (comma seperated for reference code path and test case code path)
# Applicable for CPP, C, Java and Scilab
@@ -118,6 +118,7 @@ class Question(models.Model):
question_info_dict['user_answer'] = user_answer
question_info_dict['test_parameter'] = test_case_data_dict
question_info_dict['ref_code_path'] = self.ref_code_path
+ question_info_dict['test'] = self.test
return json.dumps(question_info_dict)