model = Artist
template_name='festival/artist_list.html'
+ def get_queryset(self, **kwargs):
+ return self.model.objects.published()
+
def get_context_data(self, **kwargs):
context = super(ArtistListView, self).get_context_data(**kwargs)
return context
model = Video
template_name='festival/video_list.html'
+ def get_queryset(self, **kwargs):
+ return self.model.objects.published()
+
def get_context_data(self, **kwargs):
context = super(VideoListView, self).get_context_data(**kwargs)
context['categories'] = VideoCategory.objects.all()