From 0d8688515c264ef8654368d37dd90fe539b4b6b7 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Mon, 30 Nov 2020 00:52:21 +0100 Subject: [PATCH] filename changes: don't include time. --- src/documents/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/models.py b/src/documents/models.py index ae6665b76..a85128c07 100755 --- a/src/documents/models.py +++ b/src/documents/models.py @@ -199,7 +199,7 @@ class Document(models.Model): ordering = ("correspondent", "title") def __str__(self): - created = self.created.strftime("%Y%m%d%H%M%S") + created = self.created.strftime("%Y%m%d") if self.correspondent and self.title: return "{}: {} - {}".format( created, self.correspondent, self.title)