From 9dee37ef6176affc4fae32d3e0e90de7060f8246 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Sun, 1 May 2016 18:14:58 +0200 Subject: Link to predecessor show. diff --git a/program/templates/show_detail.html b/program/templates/show_detail.html index 04ad976..e3b2bdb 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 %} -

Davor als {{ show.predecessor.name }}

+

Davor als {{ show.predecessor.name }}

{% endif %} {% for note in show.predecessor.notes.all reversed %}
  • diff --git a/program/views.py b/program/views.py index eaba951..5dc82dd 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' -- cgit v0.10.2