# HG changeset patch # User nishanth # Date 1277795229 -19800 # Node ID ba80a1b3b187dd6e70f107a5c3e6731d8d775747 # Parent 21cdadb1b98e2f2ae834b1fab0e43540ce000e97 now questions are displayed by their description diff -r 21cdadb1b98e -r ba80a1b3b187 quiz/models.py --- a/quiz/models.py Tue Jun 29 12:28:18 2010 +0530 +++ b/quiz/models.py Tue Jun 29 12:37:09 2010 +0530 @@ -43,6 +43,10 @@ time_limit = models.PositiveSmallIntegerField() expected_ans = models.TextField() + def __unicode__(self): + + return self.description + class Answer(models.Model): """ A model for holding answers submitted by users. """