Add description to ICal feed to help Giggety app identify conference

This commit is contained in:
Scott Bragg 2017-01-14 09:47:14 +11:00
parent 2dbf020a81
commit 4e22717639

View file

@ -19,7 +19,7 @@ from account.decorators import login_required
from symposion.schedule.forms import SlotEditForm, ScheduleSectionForm from symposion.schedule.forms import SlotEditForm, ScheduleSectionForm
from symposion.schedule.models import Schedule, Day, Slot, Presentation, Session, SessionRole from symposion.schedule.models import Schedule, Day, Slot, Presentation, Session, SessionRole
from symposion.schedule.timetable import TimeTable from symposion.schedule.timetable import TimeTable
from symposion.conference.models import Conference
def fetch_schedule(slug): def fetch_schedule(slug):
qs = Schedule.objects.all() qs = Schedule.objects.all()
@ -267,6 +267,7 @@ class EventFeed(ICalFeed):
product_id = '-//linux.conf.au/schedule//EN' product_id = '-//linux.conf.au/schedule//EN'
timezone = settings.TIME_ZONE timezone = settings.TIME_ZONE
filename = 'conference.ics' filename = 'conference.ics'
description = Conference.objects.all().first().title
def items(self): def items(self):
return Slot.objects.filter( return Slot.objects.filter(