diff --git a/panikweb/views.py b/panikweb/views.py index ef8b974eca44e2461c694b69f12dd28cecbcddd7..02d7bf1ba3007a652c5087a95d04ef86186b3e08 100644 --- a/panikweb/views.py +++ b/panikweb/views.py @@ -455,14 +455,16 @@ class Emissions(TemplateView): emissions = Emissions.as_view() -class emissionsArchives(TemplateView): +class EmissionsArchives(TemplateView): template_name = 'emissions/archives.html' + def get_context_data(self, **kwargs): - context = super(emissionsArchives, self).get_context_data(**kwargs) + context = super(EmissionsArchives, self).get_context_data(**kwargs) context['sectionName'] = "Emissions" context['emissions'] = Emission.objects.prefetch_related('categories').filter(archived=True).order_by('title') return context -emissionsArchives = emissionsArchives.as_view() +emissionsArchives = EmissionsArchives.as_view() + class Get(TemplateView): template_name = 'get.html'