From 9dee37ef6176affc4fae32d3e0e90de7060f8246 Mon Sep 17 00:00:00 2001
From: Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com>
Date: Sun, 1 May 2016 18:14:58 +0200
Subject: [PATCH] Link to predecessor show.

---
 program/templates/show_detail.html | 2 +-
 program/views.py                   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/program/templates/show_detail.html b/program/templates/show_detail.html
index 04ad976d..e3b2bdbe 100644
--- a/program/templates/show_detail.html
+++ b/program/templates/show_detail.html
@@ -75,7 +75,7 @@
             {% endfor %}
             {% if show.predecessor and show.predecessor.notes.all %}
                 {% if show.name != show.predecessor.name %}
-                    <h3>Davor als {{ show.predecessor.name }}</h3>
+                    <h3>Davor als <a href="{% url "show-detail" show.predecessor.slug %}">{{ show.predecessor.name }}</a></h3>
                 {%  endif %}
                 {% for note in show.predecessor.notes.all reversed %}
                     <li>
diff --git a/program/views.py b/program/views.py
index eaba9512..5dc82dd1 100644
--- a/program/views.py
+++ b/program/views.py
@@ -50,7 +50,7 @@ class ShowListView(ListView):
 
 
 class ShowDetailView(DetailView):
-    queryset = Show.objects.filter(is_active=True).exclude(id=1).distinct()
+    queryset = Show.objects.all().exclude(id=1)
     template_name = 'show_detail.html'
 
 
-- 
GitLab