summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-10-11 01:12:46 +0530
committerGitHub2016-10-11 01:12:46 +0530
commit9b60cc7b8f000f96d5f818f759a6c63d5a26f239 (patch)
treebaa04b7a091bcb46750076dcfd7ffe5a6ff29c03 /yaksh/models.py
parent91dd42214ba5ad88c5158b50a7746caa3841a883 (diff)
parent2ee45f6f04711c745e533abeef6b5ca55d7b4ec3 (diff)
downloadonline_test-9b60cc7b8f000f96d5f818f759a6c63d5a26f239.tar.gz
online_test-9b60cc7b8f000f96d5f818f759a6c63d5a26f239.tar.bz2
online_test-9b60cc7b8f000f96d5f818f759a6c63d5a26f239.zip
Merge pull request #146 from prathamesh920/edit_questionpaper
Edit questionpaper
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 444df4a..f098cd2 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -604,10 +604,10 @@ class QuestionPaper(models.Model):
random_questions = models.ManyToManyField("QuestionSet")
# Option to shuffle questions, each time a new question paper is created.
- shuffle_questions = models.BooleanField(default=False)
+ shuffle_questions = models.BooleanField(default=False, blank=False)
# Total marks for the question paper.
- total_marks = models.FloatField()
+ total_marks = models.FloatField(default=0.0, blank=True)
objects = QuestionPaperManager()