1
0
forked from ScoDoc/ScoDoc

Fix: ItemSuivi

This commit is contained in:
Emmanuel Viennet 2024-09-11 15:31:22 +02:00
parent 8cbd01ae99
commit e12dca7aef
2 changed files with 4 additions and 2 deletions

View File

@ -1141,7 +1141,9 @@ class ItemSuivi(models.ScoDocModel):
else: else:
d["tags"] = [tag.title for tag in self.tags] d["tags"] = [tag.title for tag in self.tags]
# Ajoute date locale # Ajoute date locale
d["item_date_dmy"] = self.item_date.strftime(scu.DATE_FMT) d["item_date_dmy"] = (
self.item_date.strftime(scu.DATE_FMT) if self.item_date else ""
)
return d return d
def set_tags(self, tags: list[str]): def set_tags(self, tags: list[str]):

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.7.19" SCOVERSION = "9.7.20"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"