mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-08 14:36:02 +01:00
The Log class needed a __str__() method
This commit is contained in:
parent
1c45ca10d4
commit
eb01bcf98b
1 changed files with 3 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue