On ne compare pas les organisateurs quand on n'en a pas besoin

Fix #255
This commit is contained in:
Jean-Marie Favreau 2024-12-26 11:53:00 +01:00
parent ad48b667be
commit 6b79949002

View File

@ -1442,6 +1442,8 @@ class Event(models.Model):
"category", "category",
"tags", "tags",
] ]
if not no_m2m:
result += ["organisers"]
result += [ result += [
"title", "title",
@ -1453,8 +1455,6 @@ class Event(models.Model):
"description", "description",
"image", "image",
] ]
if not no_m2m:
result += ["organisers"]
if all and local_img: if all and local_img:
result += ["local_image"] result += ["local_image"]
if all and exact_location: if all and exact_location: