From eb01bcf98b168d160fb667a7f53b2119c4c143bb Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Wed, 17 Feb 2016 23:06:35 +0000 Subject: [PATCH] The Log class needed a __str__() method --- src/logger/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/logger/models.py b/src/logger/models.py index 48774c199..f7f2c421a 100644 --- a/src/logger/models.py +++ b/src/logger/models.py @@ -29,6 +29,9 @@ class Log(models.Model): class Meta(object): ordering = ("-time",) + def __str__(self): + return self.message + @classmethod def error(cls, message, component): cls.objects.create(