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
1 changed files with 1 additions and 0 deletions

View File

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