On ne met pas à jour la localisation exacte si elle n'est pas pertinente

Fix #398
This commit is contained in:
Jean-Marie Favreau 2025-04-13 10:26:55 +02:00
parent 3ad583f15f
commit 859cc246c9

View File

@ -2256,6 +2256,8 @@ class Event(models.Model):
continue continue
if attr == "start_day" and other.has_invalid_start_date(): if attr == "start_day" and other.has_invalid_start_date():
continue continue
if attr == "exact_location" and other.exact_location is None:
continue
setattr(self, attr, getattr(other, attr)) setattr(self, attr, getattr(other, attr))
# adjust modified date if required # adjust modified date if required