fix call for speakers

This commit is contained in:
Thomas Steen Rasmussen 2017-01-24 16:42:57 +01:00
parent 1908c18530
commit edc37243e3
2 changed files with 6 additions and 6 deletions

View file

@ -115,16 +115,16 @@ urlpatterns = [
EventListView.as_view(), EventListView.as_view(),
name='event_index' name='event_index'
), ),
url(
r'^call/$',
CallForSpeakersView.as_view(),
name='call_for_speakers'
),
url( url(
r'^(?P<slug>[-_\w+]+)/$', r'^(?P<slug>[-_\w+]+)/$',
EventDetailView.as_view(), EventDetailView.as_view(),
name='event_detail' name='event_detail'
), ),
url(
r'^call-for-speakers/$',
CallForSpeakersView.as_view(),
name='call_for_speakers'
),
]) ])
), ),

View file

@ -107,6 +107,6 @@ class EventDetailView(CampViewMixin, DetailView):
class CallForSpeakersView(CampViewMixin, TemplateView): class CallForSpeakersView(CampViewMixin, TemplateView):
def get_template_names(self): def get_template_names(self):
return 'call_for_speakers_%s.html' % self.get_object().slug return 'call_for_speakers_%s.html' % self.camp.slug