From e12dca7aef09c61c3898af3106d36971bf10aa08 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 11 Sep 2024 15:31:22 +0200 Subject: [PATCH] Fix: ItemSuivi --- app/models/etudiants.py | 4 +++- sco_version.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/models/etudiants.py b/app/models/etudiants.py index e52e3cf6..6ef71ff2 100644 --- a/app/models/etudiants.py +++ b/app/models/etudiants.py @@ -1141,7 +1141,9 @@ class ItemSuivi(models.ScoDocModel): else: d["tags"] = [tag.title for tag in self.tags] # 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 def set_tags(self, tags: list[str]): diff --git a/sco_version.py b/sco_version.py index f8ffec74..be007ee4 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.7.19" +SCOVERSION = "9.7.20" SCONAME = "ScoDoc"