Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
The Log class needed a __str__() method
Browse files Browse the repository at this point in the history
  • Loading branch information
danielquinn committed Feb 17, 2016
1 parent 1c45ca1 commit eb01bcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/logger/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit eb01bcf

Please sign in to comment.