Fixed tons of little bugs
This commit is contained in:
parent
f3e9cc9a5d
commit
7601791e8c
2 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
import itertools
|
||||
|
||||
from symposion.schedule.models import Room, Slot
|
||||
|
||||
|
||||
class Timetable(object):
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue