summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-09-16 17:58:53 +0530
committerGitHub2016-09-16 17:58:53 +0530
commit2c7600dfb1254dfce0f9e558fecc991a56fda6be (patch)
tree8ad7200b9f81745b4318c4b58b3de0b211ed9ffa /yaksh/models.py
parentbcf46d1462c35e9c8df2509a31ac3200383976fc (diff)
parent4797964bed5bf18944b6445000b7b4f1bf6d80e3 (diff)
downloadonline_test-2c7600dfb1254dfce0f9e558fecc991a56fda6be.tar.gz
online_test-2c7600dfb1254dfce0f9e558fecc991a56fda6be.tar.bz2
online_test-2c7600dfb1254dfce0f9e558fecc991a56fda6be.zip
Merge pull request #137 from maheshgudi/delete_answerpaper
admin can delete answerpaper
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 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)
###############################################################################