correction d'un bug (quand on modifie à la main, la date est modifiée)

This commit is contained in:
Jean-Marie Favreau 2023-12-31 19:05:12 +01:00
parent 7d48d74ba3
commit 5a63073cf7

View File

@ -260,7 +260,7 @@ class Event(models.Model):
self.created_date = now
if self.is_in_importation_process():
self.imported_date = now
if self.modified_date is None:
if self.modified_date is None or not self.is_in_importation_process():
self.modified_date = now