summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
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()