From 7601791e8cd008790b94767fff46f7ca1b26459e Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Thu, 30 Aug 2012 00:52:50 -0600 Subject: [PATCH] Fixed tons of little bugs --- symposion/schedule/timetable.py | 2 ++ symposion/schedule/views.py | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/symposion/schedule/timetable.py b/symposion/schedule/timetable.py index 8c9f072e..bd6354ac 100644 --- a/symposion/schedule/timetable.py +++ b/symposion/schedule/timetable.py @@ -1,5 +1,7 @@ import itertools +from symposion.schedule.models import Room, Slot + class Timetable(object): diff --git a/symposion/schedule/views.py b/symposion/schedule/views.py index 4e968d3f..d9cd2fa6 100644 --- a/symposion/schedule/views.py +++ b/symposion/schedule/views.py @@ -1,6 +1,8 @@ +from django.http import Http404 from django.shortcuts import render, get_object_or_404 -from symposion.schedule.models import Schedule +from symposion.schedule.models import Schedule, Day +from symposion.schedule.timetable import TimeTable def schedule_detail(request, slug=None): @@ -14,7 +16,7 @@ def schedule_detail(request, slug=None): ctx = { "schedule": schedule, } - return render(request, "schedule/schedule_detail.html") + return render(request, "schedule/schedule_detail.html", ctx) def schedule_edit(request, slug=None): @@ -31,4 +33,4 @@ def schedule_edit(request, slug=None): "schedule": schedule, "days": days, } - return render(request, "schedule/schedule_edit.html") + return render(request, "schedule/schedule_edit.html", ctx)