From edc37243e3aedb1ce10b173e24cfe46daf6806b8 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 24 Jan 2017 16:42:57 +0100 Subject: [PATCH] fix call for speakers --- bornhack/urls.py | 10 +++++----- program/views.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bornhack/urls.py b/bornhack/urls.py index 87455843..299b14be 100644 --- a/bornhack/urls.py +++ b/bornhack/urls.py @@ -115,16 +115,16 @@ urlpatterns = [ EventListView.as_view(), name='event_index' ), + url( + r'^call/$', + CallForSpeakersView.as_view(), + name='call_for_speakers' + ), url( r'^(?P[-_\w+]+)/$', EventDetailView.as_view(), name='event_detail' ), - url( - r'^call-for-speakers/$', - CallForSpeakersView.as_view(), - name='call_for_speakers' - ), ]) ), diff --git a/program/views.py b/program/views.py index dafb4694..cb5a4f36 100644 --- a/program/views.py +++ b/program/views.py @@ -107,6 +107,6 @@ class EventDetailView(CampViewMixin, DetailView): class CallForSpeakersView(CampViewMixin, TemplateView): def get_template_names(self): - return 'call_for_speakers_%s.html' % self.get_object().slug + return 'call_for_speakers_%s.html' % self.camp.slug