From 1fc1fc13e1ef249a5c0b69126fdb08f91f5c5d7d Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Fri, 29 Nov 2024 19:37:21 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20d'un=20bug=20possible=20quand=20on=20cr?= =?UTF-8?q?=C3=A9=C3=A9=20un=20groupe=20dupliqu=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index 40792ae..da018cf 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -1370,9 +1370,10 @@ class Event(models.Model): # otherwise merge existing groups group = DuplicatedEvents.merge_groups(groups) + group.save() + if force_non_fixed: group.representative = None - group.save() # set the possibly duplicated group for the current object self.other_versions = group