From 743b393366066f6a4605b4b554e187a56290d87d Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Mon, 11 Nov 2024 22:44:47 +0100 Subject: [PATCH] =?UTF-8?q?on=20affine=20le=20choix=20par=20d=C3=A9faut=20?= =?UTF-8?q?lors=20du=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agenda_culturel/forms.py b/src/agenda_culturel/forms.py index c624ad2..4c081c8 100644 --- a/src/agenda_culturel/forms.py +++ b/src/agenda_culturel/forms.py @@ -188,7 +188,8 @@ class FixDuplicates(Form): msg = "" if e.local_version(): msg = _(" (locally modified version)") - initial = "Select-" + str(e.pk) + if e.status != Event.STATUS.TRASH: + initial = "Select-" + str(e.pk) if e.pure_import(): msg = _(" (synchronized on import version)") choices += [