diff options
author | Prabhu Ramachandran | 2011-11-17 16:40:05 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-17 16:40:05 +0530 |
commit | 78e18eae416a37fdb2e27d4dde7ed9675692ac7d (patch) | |
tree | 4c403239be513d8259dd3810326bbfcdc0adaf23 /exam/admin.py | |
parent | e2b3d315c3cd3eab79ad74224436b681cbf84371 (diff) | |
download | online_test-78e18eae416a37fdb2e27d4dde7ed9675692ac7d.tar.gz online_test-78e18eae416a37fdb2e27d4dde7ed9675692ac7d.tar.bz2 online_test-78e18eae416a37fdb2e27d4dde7ed9675692ac7d.zip |
ENH: Added a Quiz model and time based papers
Added a model called Quiz which allows the admin to define a quiz on a
date which can be active or deactivated. Users can take a quiz if one
is active and are given a fixed duration to complete the quiz. They may
login as many times as needed to finish it but the total time is logged.
Javascript code updates a timer on the page.
Diffstat (limited to 'exam/admin.py')
-rw-r--r-- | exam/admin.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/exam/admin.py b/exam/admin.py index d40a7d6..8482ef9 100644 --- a/exam/admin.py +++ b/exam/admin.py @@ -1,4 +1,5 @@ -from exam.models import Question +from exam.models import Question, Quiz from django.contrib import admin -admin.site.register(Question)
\ No newline at end of file +admin.site.register(Question) +admin.site.register(Quiz) |