Correction sur le fonctionnement de la fonction "modified"
This commit is contained in:
parent
72242713eb
commit
d756de6993
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user