diff options
author | Ernesto Rico-Schmidt <ernesto.rico-schmidt@evolaris.net> | 2016-08-20 19:26:32 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <ernesto.rico-schmidt@evolaris.net> | 2016-08-20 19:29:55 (GMT) |
commit | a4e65be944763482155c224f62a1e6e3837d3833 (patch) | |
tree | 98fed43056d503662d2a3fdade006833c1e4704e /program | |
parent | 5288ea2ed358828635c7a9bbfc691a7b007cf5f6 (diff) |
display only active program slots of a show.
Diffstat (limited to 'program')
-rw-r--r-- | program/templates/show_detail.html | 2 | ||||
-rw-r--r-- | program/templates/show_list.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/program/templates/show_detail.html b/program/templates/show_detail.html index 9fb9fb0..2e45549 100644 --- a/program/templates/show_detail.html +++ b/program/templates/show_detail.html @@ -13,7 +13,7 @@ <h1 id="name">{{ show.name }}</h1> {% if show.id != 1 %} <p id="programslots"> - {% for slot in show.programslots.all %} + {% for slot in show.active_programslots %} <span class="programslot">{{ slot }}</span><br/> {% endfor %} </p> diff --git a/program/templates/show_list.html b/program/templates/show_list.html index 96ea497..d9b9a47 100644 --- a/program/templates/show_list.html +++ b/program/templates/show_list.html @@ -40,7 +40,7 @@ <div class="show-detail"> <h3 class="show-title"><a href="{% url "show-detail" show.slug %}">{{ show.name }}</a></h3> <ul class="show-programslots"> - {% for programslot in show.programslots.all %} + {% for programslot in show.active_program_slots %} <li class="show-programslot">{{ programslot }}</li> {% endfor %} </ul> |