readable str for messages

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-05-02 17:12:46 +02:00
parent f893607fee
commit 6bb80d117c

View file

@ -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)