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