quiz/models.py
changeset 64 ba80a1b3b187
parent 59 0b57494e8b4e
child 82 79ae8288b5ff
--- 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.
     """