Fix export ical

This commit is contained in:
Jean-Marie Favreau 2024-12-08 09:25:19 +01:00
parent 14e25b660c
commit 02448cf4d4

View File

@ -1700,8 +1700,9 @@ class Event(models.Model):
eventIcal.add("summary", event.title)
eventIcal.add("name", event.title)
url = ("\n" + event.reference_urls[0]) if event.reference_urls and len(event.reference_urls) > 0 else ""
description = event.description if event.description else ""
eventIcal.add(
"description", event.description + url
"description", description + url
)
eventIcal.add("location", event.exact_location or event.location)