Merge pull request #158 from reynir/ical-abstract-description

Add event abstract to iCal
This commit is contained in:
Víðir Valberg Guðmundsson 2017-09-12 22:58:31 +02:00 committed by GitHub
commit a1f30ccad5

View file

@ -518,6 +518,7 @@ class EventInstance(CampRelatedModel):
def get_ics_event(self): def get_ics_event(self):
ievent = icalendar.Event() ievent = icalendar.Event()
ievent['summary'] = self.event.title ievent['summary'] = self.event.title
ievent['description'] = self.event.abstract
ievent['dtstart'] = icalendar.vDatetime(self.when.lower).to_ical() ievent['dtstart'] = icalendar.vDatetime(self.when.lower).to_ical()
ievent['dtend'] = icalendar.vDatetime(self.when.upper).to_ical() ievent['dtend'] = icalendar.vDatetime(self.when.upper).to_ical()
ievent['location'] = icalendar.vText(self.location.name) ievent['location'] = icalendar.vText(self.location.name)