From 859cc246c9f8d57eb9af42632dd847fb3e318034 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sun, 13 Apr 2025 10:26:55 +0200 Subject: [PATCH] =?UTF-8?q?On=20ne=20met=20pas=20=C3=A0=20jour=20la=20loca?= =?UTF-8?q?lisation=20exacte=20si=20elle=20n'est=20pas=20pertinente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #398 --- src/agenda_culturel/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index cf96f2f..9bce903 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -2256,6 +2256,8 @@ class Event(models.Model): continue if attr == "start_day" and other.has_invalid_start_date(): continue + if attr == "exact_location" and other.exact_location is None: + continue setattr(self, attr, getattr(other, attr)) # adjust modified date if required