check emission slug url part
authorFrédéric Péters <fpeters@0d.be>
Sun, 22 Mar 2020 15:29:54 +0000 (16:29 +0100)
committerFrédéric Péters <fpeters@0d.be>
Sun, 22 Mar 2020 15:29:54 +0000 (16:29 +0100)
panikweb/views.py

index 8c19fa9..e42fd1d 100644 (file)
@@ -28,7 +28,7 @@ from haystack.query import SearchQuerySet
 
 from emissions.models import Category, Emission, Episode, Diffusion, SoundFile, \
         Schedule, Nonstop, NewsItem, NewsCategory, Focus
-
+from emissions.views import EmissionEpisodeMixin
 from emissions.utils import whatsonair, period_program
 
 from newsletter.forms import SubscribeForm
@@ -124,7 +124,8 @@ class EmissionDetailView(DetailView, EmissionMixin):
         return context
 emission = EmissionDetailView.as_view()
 
-class EpisodeDetailView(DetailView, EmissionMixin):
+
+class EpisodeDetailView(EmissionEpisodeMixin, DetailView, EmissionMixin):
     model = Episode
 
     def get_context_data(self, **kwargs):