From 6bb80d117c5a25a3219dc7d3772b998236ef19d6 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 2 May 2015 17:12:46 +0200 Subject: [PATCH] readable str for messages Signed-off-by: Nico Schottelius --- digital_glarus/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/digital_glarus/models.py b/digital_glarus/models.py index e205a914..a7535966 100644 --- a/digital_glarus/models.py +++ b/digital_glarus/models.py @@ -9,3 +9,6 @@ class Message(models.Model): message = models.TextField() received_date = models.DateTimeField('date received') + + def __str__(self): + return "%s - %s - %s" % (self.name, self.email, self.received_date)