Fixed tons of little bugs

This commit is contained in:
Brian Rosner 2012-08-30 00:52:50 -06:00
parent f3e9cc9a5d
commit 7601791e8c
2 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,7 @@
import itertools import itertools
from symposion.schedule.models import Room, Slot
class Timetable(object): class Timetable(object):

View file

@ -1,6 +1,8 @@
from django.http import Http404
from django.shortcuts import render, get_object_or_404 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): def schedule_detail(request, slug=None):
@ -14,7 +16,7 @@ def schedule_detail(request, slug=None):
ctx = { ctx = {
"schedule": schedule, "schedule": schedule,
} }
return render(request, "schedule/schedule_detail.html") return render(request, "schedule/schedule_detail.html", ctx)
def schedule_edit(request, slug=None): def schedule_edit(request, slug=None):
@ -31,4 +33,4 @@ def schedule_edit(request, slug=None):
"schedule": schedule, "schedule": schedule,
"days": days, "days": days,
} }
return render(request, "schedule/schedule_edit.html") return render(request, "schedule/schedule_edit.html", ctx)