diff options
author | Prabhu Ramachandran | 2017-01-03 18:12:54 +0530 |
---|---|---|
committer | GitHub | 2017-01-03 18:12:54 +0530 |
commit | ef6a61b1938ec399efb6d66b914f245afa3ed5ff (patch) | |
tree | b51ef2de04ecd29c242f527bf12e0570e8a258fd /yaksh/models.py | |
parent | ed79af7d019c96517ea03e13bc2809ea1e8d17c4 (diff) | |
parent | 25eb8d10045e1af6ab7c282b8df0b008223be545 (diff) | |
download | online_test-ef6a61b1938ec399efb6d66b914f245afa3ed5ff.tar.gz online_test-ef6a61b1938ec399efb6d66b914f245afa3ed5ff.tar.bz2 online_test-ef6a61b1938ec399efb6d66b914f245afa3ed5ff.zip |
Merge pull request #173 from maheshgudi/change_instructions
Edit instructions modified and MCQ choices html rendered
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 2bf4a85..04bdd24 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -81,10 +81,6 @@ def has_profile(user): def get_upload_dir(instance, filename): return "question_%s/%s" % (instance.question.id, filename) -def get_quiz_instructions_info(): - file_path = os.path.join(os.getcwd(), "Quiz_instructions.txt") - with open(file_path, 'r') as file: - return file.read() ############################################################################### class CourseManager(models.Manager): @@ -550,7 +546,7 @@ class Quiz(models.Model): is_trial = models.BooleanField(default=False) instructions = models.TextField('Instructions for Students', - default=get_quiz_instructions_info) + default=None, blank=True, null=True) view_answerpaper = models.BooleanField('Allow student to view their answer\ paper', default=False) |