Add event abstract to iCal

Testing, what is testing?!
This commit is contained in:
Reynir Björnsson 2017-09-02 00:50:45 +02:00 committed by GitHub
parent ee4c0819e4
commit 68cba4659a

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)