diff --git a/program/views.py b/program/views.py index 23aab75eefaa6cadc46db07956a6af653435ca8e..6a53e82a9e05f22ae8d132f9c2815fd267422b66 100644 --- a/program/views.py +++ b/program/views.py @@ -27,7 +27,7 @@ class HostDetailView(DetailView): class ShowListView(ListView): context_object_name = 'show_list' - queryset = Show.objects.filter(is_active=True).exclude(id=1) + queryset = Show.objects.filter(is_active=True).exclude(id=1).distinct() template_name = 'show_list.html' def get_queryset(self): @@ -50,7 +50,7 @@ class ShowListView(ListView): class ShowDetailView(DetailView): - queryset = Show.objects.exclude(id=1) + queryset = Show.objects.all().exclude(id=1) template_name = 'show_detail.html'