summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-05-01 16:14:58 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-05-01 16:14:58 (GMT)
commit9dee37ef6176affc4fae32d3e0e90de7060f8246 (patch)
tree6c0556ab32b06c99b842d69c9e590e32674dcddc
parent094aa869116847d7941ab6fbf18b176dec1665d1 (diff)
Link to predecessor show.
-rw-r--r--program/templates/show_detail.html2
-rw-r--r--program/views.py2
2 files changed, 2 insertions, 2 deletions
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 %}
- <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 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'