Fixed merge conflict and did some pep8

This commit is contained in:
Daniel Quinn
2016-02-14 17:13:48 +00:00
3 changed files with 36 additions and 5 deletions

View File

@@ -26,6 +26,9 @@ class Log(models.Model):
level = models.PositiveIntegerField(choices=LEVELS, default=LEVEL_INFO)
component = models.PositiveIntegerField(choices=COMPONENTS)
class Meta(object):
ordering = ("time",)
@classmethod
def error(cls, message, component):
cls.objects.create(