Skip to content
Snippets Groups Projects
Commit 3fa12a48 authored by Mark Skipper's avatar Mark Skipper
Browse files

Make message items printable

parent 47ff64a9
No related branches found
No related tags found
No related merge requests found
......@@ -12,5 +12,12 @@ class Message(DataLayerModel):
body = models.TextField()
timestamp = models.DateTimeField(null=True)
def __unicode__(self):
return "{}: '{}' @{}".format(
self.id,
self.body,
self.timestamp
)
# TODO: rename this class
Item = Message
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment