From 6cf4e9577bcd2f2e2d9c18b2c84cb5666f83dd36 Mon Sep 17 00:00:00 2001 From: Stephan Telling Date: Sun, 4 Jun 2017 13:05:59 +0200 Subject: [PATCH] fix template names in sponsor app for consistency --- ...r-sponsors.html => bornhack-2016_call_for_sponsors.html} | 0 ...nhack-2016-sponsors.html => bornhack-2016_sponsors.html} | 0 ...r-sponsors.html => bornhack-2017_call_for_sponsors.html} | 0 ...nhack-2017-sponsors.html => bornhack-2017_sponsors.html} | 0 src/sponsors/views.py | 6 ++---- 5 files changed, 2 insertions(+), 4 deletions(-) rename src/sponsors/templates/{bornhack-2016-call-for-sponsors.html => bornhack-2016_call_for_sponsors.html} (100%) rename src/sponsors/templates/{bornhack-2016-sponsors.html => bornhack-2016_sponsors.html} (100%) rename src/sponsors/templates/{bornhack-2017-call-for-sponsors.html => bornhack-2017_call_for_sponsors.html} (100%) rename src/sponsors/templates/{bornhack-2017-sponsors.html => bornhack-2017_sponsors.html} (100%) diff --git a/src/sponsors/templates/bornhack-2016-call-for-sponsors.html b/src/sponsors/templates/bornhack-2016_call_for_sponsors.html similarity index 100% rename from src/sponsors/templates/bornhack-2016-call-for-sponsors.html rename to src/sponsors/templates/bornhack-2016_call_for_sponsors.html diff --git a/src/sponsors/templates/bornhack-2016-sponsors.html b/src/sponsors/templates/bornhack-2016_sponsors.html similarity index 100% rename from src/sponsors/templates/bornhack-2016-sponsors.html rename to src/sponsors/templates/bornhack-2016_sponsors.html diff --git a/src/sponsors/templates/bornhack-2017-call-for-sponsors.html b/src/sponsors/templates/bornhack-2017_call_for_sponsors.html similarity index 100% rename from src/sponsors/templates/bornhack-2017-call-for-sponsors.html rename to src/sponsors/templates/bornhack-2017_call_for_sponsors.html diff --git a/src/sponsors/templates/bornhack-2017-sponsors.html b/src/sponsors/templates/bornhack-2017_sponsors.html similarity index 100% rename from src/sponsors/templates/bornhack-2017-sponsors.html rename to src/sponsors/templates/bornhack-2017_sponsors.html diff --git a/src/sponsors/views.py b/src/sponsors/views.py index fa9253e8..bd709166 100644 --- a/src/sponsors/views.py +++ b/src/sponsors/views.py @@ -4,11 +4,9 @@ from camps.mixins import CampViewMixin class SponsorsView(CampViewMixin, TemplateView): def get_template_names(self): - return '%s-sponsors.html' % self.camp.slug + return '%s_sponsors.html' % self.camp.slug class CallForSponsorsView(CampViewMixin, TemplateView): def get_template_names(self): - return '%s-call-for-sponsors.html' % self.camp.slug - - + return '%s_call_for_sponsors.html' % self.camp.slug