summaryrefslogtreecommitdiff
path: root/app/podcasts/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/podcasts/views.py')
-rw-r--r--app/podcasts/views.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/app/podcasts/views.py b/app/podcasts/views.py
index a8edbfa..38d761e 100644
--- a/app/podcasts/views.py
+++ b/app/podcasts/views.py
@@ -8,7 +8,7 @@ from django.shortcuts import get_object_or_404
from django.conf import settings
from django.db.models import Q
-from utils.views import PaginatedListView
+from utils.views import PaginatedListView, LuxDetailView
from .models import Episode, Podcast
@@ -27,3 +27,16 @@ class PodcastListView(PaginatedListView):
context['podcast'] = Podcast.objects.get(title="The Lulu & Birdie Podcast")
return context
+class PodcastDetailView(LuxDetailView):
+ """
+ Return a single episodes
+ """
+ model = Podcast
+ template_name = "podcasts/detail.html"
+
+ def get_context_data(self, **kwargs):
+ context = super(PodcastListView, self).get_context_data(**kwargs)
+ context['breadcrumbs'] = ['podcast',]
+ context['podcast'] = Podcast.objects.get(title="The Lulu & Birdie Podcast")
+ return context
+