diff options
author | luxagraf <sng@luxagraf.net> | 2022-12-17 14:44:26 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2022-12-17 14:44:26 -0600 |
commit | 618a60aab65c5146bc2a64c12dd7b88ce72c45b4 (patch) | |
tree | 33d925183248d2aba558c8ab143a48bfbd2e259b /app/podcasts/views.py | |
parent | 4ecc8fca59c3a5e36530e88859cb9f9347444efc (diff) |
pod: added url structure for lulu&birdie podcast
Diffstat (limited to 'app/podcasts/views.py')
-rw-r--r-- | app/podcasts/views.py | 15 |
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 + |