use created_date

This commit is contained in:
Michael Shamoon
2022-05-15 21:09:42 -07:00
parent bb15b744c8
commit 2ca691d3b8
9 changed files with 43 additions and 48 deletions

View File

@@ -279,6 +279,10 @@ class Document(models.Model):
def thumbnail_file(self):
return open(self.thumbnail_path, "rb")
@property
def created_date(self):
return timezone.localdate(self.created)
class Log(models.Model):