diff --git a/program/templates/show_detail.html b/program/templates/show_detail.html index 04ad976d785c270a6fa13077b764dc0a019e84e4..e3b2bdbe22044a6cf0447facd16d2c1ecbdbb63c 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 eaba95127bab52ff4f7bf980c65a37d39233ce2d..5dc82dd156ba262ea9c5e80c3c77273253ef0aee 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'