use {camp-slug}_*.html for all templates

This commit is contained in:
Stephan Telling 2017-01-28 19:30:52 +01:00
parent 60137c0cda
commit 712cd2a129
No known key found for this signature in database
GPG key ID: C07DFD6208200C9D
5 changed files with 2 additions and 4 deletions

View file

@ -8,7 +8,7 @@ class CampDetailView(DetailView):
slug_url_kwarg = 'camp_slug' slug_url_kwarg = 'camp_slug'
def get_template_names(self): def get_template_names(self):
return 'camp_detail_%s.html' % self.get_object().slug return '%s_camp_detail.html' % self.get_object().slug
class CampListView(ListView): class CampListView(ListView):

View file

@ -98,7 +98,6 @@ class ProgramDayView(CampViewMixin, TemplateView):
return context return context
class EventDetailView(CampViewMixin, DetailView): class EventDetailView(CampViewMixin, DetailView):
model = models.Event model = models.Event
template_name = 'program_event_detail.html' template_name = 'program_event_detail.html'
@ -106,6 +105,5 @@ 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.camp.slug return '%s_call_for_speakers.html' % self.camp.slug