From 6b799490028319aec5a33445b790a2bfc09f4b07 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Thu, 26 Dec 2024 11:53:00 +0100 Subject: [PATCH] On ne compare pas les organisateurs quand on n'en a pas besoin Fix #255 --- src/agenda_culturel/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index 8ae5734..7ab160b 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -1442,6 +1442,8 @@ class Event(models.Model): "category", "tags", ] + if not no_m2m: + result += ["organisers"] result += [ "title", @@ -1453,8 +1455,6 @@ class Event(models.Model): "description", "image", ] - if not no_m2m: - result += ["organisers"] if all and local_img: result += ["local_image"] if all and exact_location: