Fixed slug bug
This commit is contained in:
parent
0a4e626dfe
commit
bec6903ca1
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ from symposion.schedule.models import Schedule
|
|||
|
||||
def schedule_detail(request, slug=None):
|
||||
qs = Schedule.objects.all()
|
||||
if pk is None:
|
||||
if slug is None:
|
||||
schedule = next(iter(qs), None)
|
||||
if schedule is None:
|
||||
raise Http404()
|
||||
|
@ -19,7 +19,7 @@ def schedule_detail(request, slug=None):
|
|||
|
||||
def schedule_edit(request, slug=None):
|
||||
qs = Schedule.objects.all()
|
||||
if pk is None:
|
||||
if slug is None:
|
||||
schedule = next(iter(qs), None)
|
||||
if schedule is None:
|
||||
raise Http404()
|
||||
|
|
Loading…
Reference in a new issue