include presentation in the context for breadcrumbs

This commit is contained in:
Luke Hatcher 2012-12-20 01:55:00 -05:00
parent 4461c2f510
commit ca462422ba

View file

@ -45,6 +45,7 @@ def schedule_conference(request):
def schedule_detail(request, slug=None): def schedule_detail(request, slug=None):
schedule = fetch_schedule(slug) schedule = fetch_schedule(slug)
days_qs = Day.objects.filter(schedule=schedule) days_qs = Day.objects.filter(schedule=schedule)
@ -147,5 +148,6 @@ def schedule_presentation_detail(request, pk):
ctx = { ctx = {
"presentation": presentation, "presentation": presentation,
"schedule": presentation.slot.day.schedule,
} }
return render(request, "schedule/presentation_detail.html", ctx) return render(request, "schedule/presentation_detail.html", ctx)