forked from CGM_Public/pretix_original
Presale: separate multiple lines by comma in ical event location (#3037)
This commit is contained in:
committed by
GitHub
parent
e8269ed1bf
commit
93950d3fac
@@ -57,7 +57,7 @@ def get_public_ical(events):
|
|||||||
vevent.add('summary').value = str(ev.name)
|
vevent.add('summary').value = str(ev.name)
|
||||||
vevent.add('dtstamp').value = creation_time
|
vevent.add('dtstamp').value = creation_time
|
||||||
if ev.location:
|
if ev.location:
|
||||||
vevent.add('location').value = str(ev.location)
|
vevent.add('location').value = ", ".join(l.strip() for l in str(ev.location).splitlines() if l.strip())
|
||||||
vevent.add('uid').value = 'pretix-{}-{}-{}@{}'.format(
|
vevent.add('uid').value = 'pretix-{}-{}-{}@{}'.format(
|
||||||
event.organizer.slug, event.slug,
|
event.organizer.slug, event.slug,
|
||||||
ev.pk if not isinstance(ev, Event) else '0',
|
ev.pk if not isinstance(ev, Event) else '0',
|
||||||
|
|||||||
Reference in New Issue
Block a user