summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-01-25 09:47:46 +0530
committerGitHub2017-01-25 09:47:46 +0530
commit35b610d92ca8bdd9a2f160f3ef41faadf9600d73 (patch)
tree1d45a300f8a4d2863935a40a1008260582ad4b6d /yaksh/models.py
parent6db62cad24e0b7cd9c1a5f354566cc0e9186d1cd (diff)
parent643321cad6922be48bffc1727473f5885ef73670 (diff)
downloadonline_test-35b610d92ca8bdd9a2f160f3ef41faadf9600d73.tar.gz
online_test-35b610d92ca8bdd9a2f160f3ef41faadf9600d73.tar.bz2
online_test-35b610d92ca8bdd9a2f160f3ef41faadf9600d73.zip
Merge pull request #184 from maheshgudi/mcq_bugfix
Minor view changes
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py40
1 files changed, 1 insertions, 39 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 5800ebd..7e0ce16 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -68,43 +68,6 @@ test_status = (
('completed', 'Completed'),
)
-instructions_data = dedent("""\
- <p>
- This examination system has been developed with the intention of
- making you learn programming and be assessed in an interactive and
- fun manner. You will be presented with a series of programming questions
- and problems that you will answer online and get immediate
- feedback for.
- </p>
- <p>
- Here are some important instructions and rules that you should
- understand carefully.</p>
- <ul>
- <li>For any programming questions, you can submit solutions as many
- times as you want without a penalty. You may skip questions
- and solve them later.</li>
- <li> You <strong>may</strong> use your computer's Python/IPython
- shell or an editor to solve the problem and cut/paste the
- solution to the web interface.
- </li>
- <li> <strong>You are not allowed to use any internet resources,
- i.e. no google etc.</strong>
- </li>
- <li> Do not copy or share the questions or answers with anyone
- until the exam is complete <strong>for everyone</strong>.
- </li>
- <li> <strong>All</strong> your attempts at the questions are logged.
- Do not try to outsmart and break the testing system.
- If you do, we know who you are and we will expel you from the
- course. You have been warned.
- </li>
- </ul>
- <p>
- We hope you enjoy taking this
- exam !!!
- </p>
- """)
-
def get_assignment_dir(instance, filename):
return '%s/%s/%s' % (instance.user.user, instance.assignmentQuestion.id, filename)
@@ -609,7 +572,6 @@ class Quiz(models.Model):
end_date_time=timezone.now() + timedelta(176590),
duration=30, active=True,
attempts_allowed=-1,
- instructions=instructions_data,
time_between_attempts=0,
description='Yaksh Demo quiz', pass_criteria=0,
language='Python', prerequisite=None,
@@ -1222,7 +1184,7 @@ class StdIOBasedTestCase(TestCase):
class McqTestCase(TestCase):
- options = models.CharField(max_length=100)
+ options = models.TextField(default=None)
correct = models.BooleanField(default=False)
def get_field_value(self):