summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-05-27 20:02:16 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-05-27 20:02:16 (GMT)
commitc27b374386463c56f41815869d6209f9a422b858 (patch)
tree9c62c09230aec03187cc13d2ac78d299bd96096b
parente8572ea3d9869760fe70bd467e0a8692f217cb02 (diff)
reverted accidentially committed stuff
-rw-r--r--program/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/views.py b/program/views.py
index 23aab75..6a53e82 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'