On corrige un bug dans l'export ical

This commit is contained in:
Jean-Marie Favreau 2024-09-09 23:12:28 +02:00
parent a180534be2
commit c78411872b

View File

@ -1172,8 +1172,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 ""
eventIcal.add(
"description", event.description + "\r" + event.reference_urls[0]
"description", event.description + url
)
eventIcal.add("location", event.exact_location or event.location)