[charts] Fix chart building
This commit is contained in:
@ -4,7 +4,11 @@ from django.views import generic
|
||||
from podcasts.models import Podcast, PodcastEpisode
|
||||
|
||||
from scrobbles.models import Scrobble
|
||||
from scrobbles.views import ScrobbleableListView, ScrobbleableDetailView
|
||||
from scrobbles.views import (
|
||||
ScrobbleableListView,
|
||||
ScrobbleableDetailView,
|
||||
ChartContextMixin,
|
||||
)
|
||||
|
||||
|
||||
class PodcastListView(ScrobbleableListView):
|
||||
@ -61,7 +65,7 @@ class PodcastListView(ScrobbleableListView):
|
||||
return context_data
|
||||
|
||||
|
||||
class PodcastDetailView(generic.DetailView):
|
||||
class PodcastDetailView(ChartContextMixin, generic.DetailView):
|
||||
model = Podcast
|
||||
slug_field = "uuid"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user