From defb6ccfad4e9b327868c0ace2a582cd636decc4 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sat, 9 Nov 2024 14:42:46 +0100 Subject: [PATCH] =?UTF-8?q?Quand=20on=20fusionne=20deux=20duplicated,=20il?= =?UTF-8?q?s=20ne=20sont=20plus=20r=C3=A9solus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index e6df161..eeb1967 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -258,6 +258,7 @@ class DuplicatedEvents(models.Model): e.other_versions = other # save them e.save() + other.representative = None other.save() # then delete the empty group self.delete()