use {camp-slug}_*.html for all templates
This commit is contained in:
parent
60137c0cda
commit
712cd2a129
|
@ -8,7 +8,7 @@ class CampDetailView(DetailView):
|
|||
slug_url_kwarg = 'camp_slug'
|
||||
|
||||
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):
|
||||
|
|
|
@ -98,7 +98,6 @@ class ProgramDayView(CampViewMixin, TemplateView):
|
|||
return context
|
||||
|
||||
|
||||
|
||||
class EventDetailView(CampViewMixin, DetailView):
|
||||
model = models.Event
|
||||
template_name = 'program_event_detail.html'
|
||||
|
@ -106,6 +105,5 @@ class EventDetailView(CampViewMixin, DetailView):
|
|||
|
||||
class CallForSpeakersView(CampViewMixin, TemplateView):
|
||||
def get_template_names(self):
|
||||
return 'call_for_speakers_%s.html' % self.camp.slug
|
||||
|
||||
return '%s_call_for_speakers.html' % self.camp.slug
|
||||
|
||||
|
|
Loading…
Reference in a new issue