]> git.parisson.com Git - django_quiz.git/commit
Add option to take a subset of the questions in a quiz
authorRichard Mansfield <richard@dragonfly.co.nz>
Tue, 5 Aug 2014 22:55:56 +0000 (10:55 +1200)
committerRichard Mansfield <richard@dragonfly.co.nz>
Tue, 5 Aug 2014 23:24:49 +0000 (11:24 +1200)
commitc074ff2d45ddba2493116ec04c31e17cbc9e3491
tree8d648eb84b9489213849e7f4ef63c4276ca8d80f
parentbacc13fd57796936a69302873c0618c70f9cd0c8
Add option to take a subset of the questions in a quiz

Adds a "max_questions" field to a quiz, indicating the number of
questions to be answered on each attempt.  This is useful when the
quiz has a large pool of questions, and students are expected to take
multiple attempts and answer a different random subset of questions
each time.

Each Sitting stores a list of all the questions chosen for the
attempt, and the order in which they are presented to the user, so
that results can be displayed at the end for the question subset,
instead of for the whole quiz.
quiz/models.py
quiz/views.py