summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-08-30 16:14:51 +0530
committerGitHub2016-08-30 16:14:51 +0530
commitfb1877472b80b45d51e926966d6d21ca80b9ae9f (patch)
treef6a56a982a59e0ee3ecaf7dd5f47837c84f3c88b /yaksh/models.py
parentdc7cde8882ecd993b90f08090e7d499f063aadf2 (diff)
parentb8c58435aef3b9c30ae8952f353648d70d228eec (diff)
downloadonline_test-fb1877472b80b45d51e926966d6d21ca80b9ae9f.tar.gz
online_test-fb1877472b80b45d51e926966d6d21ca80b9ae9f.tar.bz2
online_test-fb1877472b80b45d51e926966d6d21ca80b9ae9f.zip
Merge pull request #122 from maheshgudi/course_changes
made UI changes to courses page and teacher can add another teacher
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py4
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):