add pdocasts
This commit is contained in:
@ -8,6 +8,7 @@ from .program import ProgramPageDetailView
|
||||
__all__ = (
|
||||
"EpisodeDetailView",
|
||||
"EpisodeListView",
|
||||
"PodcastListView",
|
||||
)
|
||||
|
||||
|
||||
@ -35,9 +36,6 @@ class EpisodeListView(PageListView):
|
||||
attach_to_value = StaticPage.ATTACH_TO_EPISODES
|
||||
|
||||
|
||||
class PodcastListView(PageListView):
|
||||
model = Episode
|
||||
filterset_class = EpisodeFilters
|
||||
parent_model = Program
|
||||
class PodcastListView(EpisodeListView):
|
||||
attach_to_value = StaticPage.ATTACH_TO_PODCASTS
|
||||
queryset = Episode.objects.published().with_podcasts().order_by("-pub_date")
|
||||
|
Reference in New Issue
Block a user