diff options
author | prathamesh | 2016-10-04 16:57:25 +0530 |
---|---|---|
committer | prathamesh | 2016-10-04 16:57:25 +0530 |
commit | c5ae3d4589a71c3f3b9f622c7b67a04277269cde (patch) | |
tree | 78bd889cb40f647db6ba152063dce47ae7b8f430 /yaksh/models.py | |
parent | 64bb8507cbfbaf8b4558926a0c3206eb85547ed1 (diff) | |
download | online_test-c5ae3d4589a71c3f3b9f622c7b67a04277269cde.tar.gz online_test-c5ae3d4589a71c3f3b9f622c7b67a04277269cde.tar.bz2 online_test-c5ae3d4589a71c3f3b9f622c7b67a04277269cde.zip |
Edit Question Paper Feature.
Can edit question paper.
For creating new and editing existing question paper, same UI and view is used.
Ajax previously used for creation is removed. Not necessary as post
request handles the same.
Removed unnecessary js.
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 7c4d5c4..a6537e1 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() |