Skip to content
Snippets Groups Projects
Commit 9dee37ef authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Link to predecessor show.

parent 094aa869
Branches
Tags
No related merge requests found
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
{% endfor %} {% endfor %}
{% if show.predecessor and show.predecessor.notes.all %} {% if show.predecessor and show.predecessor.notes.all %}
{% if show.name != show.predecessor.name %} {% 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 %} {% endif %}
{% for note in show.predecessor.notes.all reversed %} {% for note in show.predecessor.notes.all reversed %}
<li> <li>
......
...@@ -50,7 +50,7 @@ class ShowListView(ListView): ...@@ -50,7 +50,7 @@ class ShowListView(ListView):
class ShowDetailView(DetailView): 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' template_name = 'show_detail.html'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment