The Log class needed a __str__() method

This commit is contained in:
Daniel Quinn 2016-02-17 23:06:35 +00:00
parent 1c45ca10d4
commit eb01bcf98b

View File

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