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):
|
def modified(self):
|
||||||
return (
|
return (
|
||||||
self.modified_date is None
|
not self.modified_date is None
|
||||||
or (self.modified_date - self.created_date).total_seconds() > 1
|
and (self.modified_date - self.created_date).total_seconds() > 1
|
||||||
)
|
)
|
||||||
|
|
||||||
def nb_draft_events():
|
def nb_draft_events():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user