Skip to content
Snippets Groups Projects
Commit e12dca7a authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Fix: ItemSuivi

parent 8cbd01ae
No related branches found
No related tags found
No related merge requests found
...@@ -1141,7 +1141,9 @@ class ItemSuivi(models.ScoDocModel): ...@@ -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]):
......
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.7.19" SCOVERSION = "9.7.20"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment