Fix événements sans image dans l'ical
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user