filename changes: don't include time.

This commit is contained in:
jonaswinkler 2020-11-30 00:52:21 +01:00
parent f51207fc32
commit 0d8688515c

View File

@ -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)