Commit b291c6c0 authored by fred's avatar fred
Browse files

episodes: order diffusion dates

parent fd7fe5f8
......@@ -109,7 +109,8 @@ class EpisodeDetailView(DetailView, EmissionMixin):
def get_context_data(self, **kwargs):
context = super(EpisodeDetailView, self).get_context_data(**kwargs)
context['sectionName'] = "Emissions"
context['diffusions'] = Diffusion.objects.select_related().filter(
context['diffusions'] = Diffusion.objects.select_related().filter('datetime')
context['emission'] = Emission.objects.get(slug=self.kwargs.get('emission_slug'))
return context
Supports Markdown
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