Merge pull request #158 from reynir/ical-abstract-description
Add event abstract to iCal
This commit is contained in:
commit
a1f30ccad5
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue