Commit d666242d authored by fred's avatar fred
Browse files

fix emission archives page, do not mix class and function names

parent dc827aa6
......@@ -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'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment