use created_date

This commit is contained in:
Michael Shamoon committed 2022-05-18 03:25:02 -07:00
1 parent bb15b744c8
commit 2ca691d3b8
9 files changed
+43 -48

No files matched your search

+4
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):