Fix événements sans image dans l'ical

This commit is contained in:
Jean-Marie Favreau 2024-12-08 17:36:57 +01:00
parent 3316d28e09
commit 41d6b39988

View File

@ -1704,7 +1704,7 @@ class Event(models.Model):
eventIcal.add( eventIcal.add(
"description", description + url "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('image', request.build_absolute_uri(event.local_image), parameters={'VALUE': 'URI'})
eventIcal.add("location", event.exact_location or event.location) eventIcal.add("location", event.exact_location or event.location)