From ca5ba2a8976e5401291150a0c3fbc9b1a3fb5f95 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 6 Nov 2013 12:36:13 +0100 Subject: [PATCH] Submission string representation in admin --- wtem/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wtem/models.py b/wtem/models.py index 877190b..1e3eb4d 100644 --- a/wtem/models.py +++ b/wtem/models.py @@ -20,6 +20,8 @@ class Submission(models.Model): email = models.EmailField(max_length = 100, unique = True) answers = models.CharField(max_length = 65536, null = True, blank = True) key_sent = models.BooleanField(default = False) + def __unicode__(self): + return ', '.join((self.last_name, self.first_name, self.email)) @classmethod def generate_key(cls): -- 2.20.1