diff options
author | maheshgudi | 2016-08-09 18:13:22 +0530 |
---|---|---|
committer | maheshgudi | 2016-08-29 14:07:07 +0530 |
commit | 80e3a68ddfcc15fc88442d7af53d804653c4d2a4 (patch) | |
tree | a0ae4c9f445ed041bfdf73f4184503a43762ca7d /yaksh/models.py | |
parent | d9f6a93ea8d4ddf9f139649567bd680e3f101556 (diff) | |
download | online_test-80e3a68ddfcc15fc88442d7af53d804653c4d2a4.tar.gz online_test-80e3a68ddfcc15fc88442d7af53d804653c4d2a4.tar.bz2 online_test-80e3a68ddfcc15fc88442d7af53d804653c4d2a4.zip |
added Course and question paper classes in admin.py
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 73d4b27..898662c 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -570,7 +570,9 @@ class QuestionPaper(models.Model): if self.quiz.has_prerequisite(): prerequisite = self._get_prequisite_paper() return prerequisite._is_questionpaper_passed(user) - + + def __unicode__(self): + return "Question Paper for " + self.quiz.description ############################################################################### class QuestionSet(models.Model): |