From 41d6b39988dc2e825f14f005f8737f90b189eec9 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sun, 8 Dec 2024 17:36:57 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20=C3=A9v=C3=A9nements=20sans=20image=20dan?= =?UTF-8?q?s=20l'ical?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index cbaa76f..dcc5b62 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -1704,7 +1704,7 @@ class Event(models.Model): eventIcal.add( "description", description + url ) - if not event.local_image is None: + if not event.local_image is None and event.local_image != "": eventIcal.add('image', request.build_absolute_uri(event.local_image), parameters={'VALUE': 'URI'}) eventIcal.add("location", event.exact_location or event.location)