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

renamed model field

parent 35bf6baf
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ class Migration(migrations.Migration): ...@@ -13,7 +13,7 @@ class Migration(migrations.Migration):
operations = [ operations = [
migrations.AddField( migrations.AddField(
model_name='host', model_name='host',
name='always_visible', name='is_always_visible',
field=models.BooleanField(default=False, verbose_name='Always visible'), field=models.BooleanField(default=False, verbose_name='Is always visible'),
), ),
] ]
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
{{ item.start|date:"d.m. H:i" }} - {{ item.start|date:"d.m. H:i" }} -
{{ item.end|date:"H:i" }}<br /> {{ item.end|date:"H:i" }}<br />
<h3> <h3>
<a href="{% url timeslot-detail item.id %}">{{ item.show.name }}</a> <a href="{% url "timeslot-detail" item.id %}">{{ item.show.name }}</a>
</h3> </h3>
<p class="note-title"> <p class="note-title">
{% if item.note %} {% if item.note %}
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
{% else %} {% else %}
{{ item.show.broadcastformat.format }}<br /> {{ item.show.broadcastformat.format }}<br />
{% endif %} {% endif %}
<a href="{% url timeslot-detail item.id %}">[weiter]</a> <a href="{% url "timeslot-detail" item.id %}">[weiter]</a>
</p> </p>
</td> </td>
</tr> </tr>
......
...@@ -7,32 +7,32 @@ ...@@ -7,32 +7,32 @@
<div id="content-main" class="recommendations"> <div id="content-main" class="recommendations">
<h1>Programmhinweise</h1> <h1>Programmhinweise</h1>
<div id="shows"> <div id="shows">
{% for item in recommendation_list %} {% for recommendation in recommendation_list %}
<div class="show recommendation bf-{{ item.show.broadcastformat.slug }}"> <div class="show recommendation bf-{{ recommendation.show.broadcastformat.slug }}">
<div class="show-abbrevs"> <div class="show-abbrevs">
{% for ab in item.show.showinformation.all %} {% for si in recommendation.show.showinformation.all %}
<span title="{{ab.information}}" class="abbrev si-{{ ab.abbrev }}"><span>{{ ab.abbrev }}</span></span> <span title="{{ si.information }}" class="abbrev si-{{ si.abbrev }}"><span>{{ si.abbrev }}</span></span>
{% endfor %} {% endfor %}
{% for ab in item.show.showtopic.all %} {% for st in recommendation.show.showtopic.all %}
<span title="{{ab.topic}}" class="abbrev st-{{ ab.abbrev }}"><span>{{ ab.abbrev }}</span></span> <span title="{{ st.topic }}" class="abbrev st-{{ st.abbrev }}"><span>{{ st.abbrev }}</span></span>
{% endfor %} {% endfor %}
{% for ab in item.show.musicfocus.all %} {% for mf in recommendation.show.musicfocus.all %}
<span title="{{ab.focus}}" class="abbrev mf-{{ ab.abbrev }}"><span>{{ ab.abbrev }}</span></span> <span title="{{ mf.focus }}" class="abbrev mf-{{ mf.abbrev }}"><span>{{ mf.abbrev }}</span></span>
{% endfor %} {% endfor %}
</div> </div>
<div class="show-detail"> <div class="show-detail">
<h4> <h4>
<a href="{% url show-detail item.show.slug %}">{{ item.show.name }}</a><br /> <a href="{% url "show-detail" recommendation.show.slug %}">{{ recommendation.show.name }}</a><br />
vom {{ item.start|date:"d.m. H:i" }}-{{ item.end|date:"H:i" }} vom {{ recommendation.start|date:"d.m. H:i" }}-{{ recommendation.end|date:"H:i" }}
</h4> </h4>
{% if item.note %} {% if recommendation.note %}
<h3 class="show-title"> <h3 class="show-title">
<a href="{% url timeslot-detail item.id %}">{{ item.note.title }}</a> <a href="{% url "timeslot-detail" recommendation.id %}">{{ recommendation.note.title }}</a>
</h3> </h3>
<div class="note-content">{{ item.note.content|safe}}</div> <div class="note-content">{{ recommendation.note.content|safe}}</div>
{% else %} {% else %}
<h3 class="show-title"> <h3 class="show-title">
<a href="{% url timeslot-detail item.id %}">{{ item.show.broadcastformat.format }}</a> <a href="{% url "timeslot-detail" recommendation.id %}">{{ recommendation.show.broadcastformat.format }}</a>
</h3> </h3>
{% endif %} {% endif %}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment