From 4797964bed5bf18944b6445000b7b4f1bf6d80e3 Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Thu, 15 Sep 2016 17:32:34 +0530 Subject: admin can delete answerpaper --- yaksh/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'yaksh/models.py') diff --git a/yaksh/models.py b/yaksh/models.py index 0f801b8..8e8a0d3 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -904,7 +904,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) ############################################################################### -- cgit