Correction sur le fonctionnement de la fonction "modified"

This commit is contained in:
Jean-Marie Favreau 2024-11-08 10:20:11 +01:00
parent 72242713eb
commit d756de6993

View File

@ -628,8 +628,8 @@ class Event(models.Model):
def modified(self):
return (
self.modified_date is None
or (self.modified_date - self.created_date).total_seconds() > 1
not self.modified_date is None
and (self.modified_date - self.created_date).total_seconds() > 1
)
def nb_draft_events():