use created_date

This commit is contained in:
Michael Shamoon
2022-05-15 21:09:42 -07:00
parent 87866bcab0
commit caa9c49e05
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):