From: Aleksander Ɓukasz Date: Wed, 6 Nov 2013 11:36:13 +0000 (+0100) Subject: Submission string representation in admin X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/ca5ba2a8976e5401291150a0c3fbc9b1a3fb5f95?ds=inline Submission string representation in admin --- 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):