On ne change pas la date si elle n'est pas bonne

This commit is contained in:
Jean-Marie Favreau 2025-02-19 17:02:40 +01:00
parent 70755b8f5e
commit b73103c0bb

View File

@ -1607,7 +1607,7 @@ class Event(models.Model):
if not r["similar"]:
if r["key"] == "title" and (self.has_invalid_title() or event.has_invalid_title()):
continue
if r["key"] == "start_date" and (self.has_invalid_start_date() or event.has_invalid_start_date()):
if r["key"] == "start_day" and (self.has_invalid_start_date() or event.has_invalid_start_date()):
continue
return False
return True