diff options
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 dd0f6d1..e7a60df 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -949,7 +949,9 @@ class AnswerPaper(models.Model): def __unicode__(self): u = self.user - return u'Question paper for {0} {1}'.format(u.first_name, u.last_name) + q = self.question_paper.quiz + return u'AnswerPaper paper of {0} {1} for quiz {2}'\ + .format(u.first_name, u.last_name, q.description) ############################################################################### |