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):
operations = [
migrations.AddField(
model_name='host',
name='always_visible',
field=models.BooleanField(default=False, verbose_name='Always visible'),
name='is_always_visible',
field=models.BooleanField(default=False, verbose_name='Is always visible'),
),
]
......@@ -19,7 +19,7 @@
{{ item.start|date:"d.m. H:i" }} -
{{ item.end|date:"H:i" }}<br />
<h3>
<a href="{% url timeslot-detail item.id %}">{{ item.show.name }}</a>
<a href="{% url "timeslot-detail" item.id %}">{{ item.show.name }}</a>
</h3>
<p class="note-title">
{% if item.note %}
......@@ -27,7 +27,7 @@
{% else %}
{{ item.show.broadcastformat.format }}<br />
{% endif %}
<a href="{% url timeslot-detail item.id %}">[weiter]</a>
<a href="{% url "timeslot-detail" item.id %}">[weiter]</a>
</p>
</td>
</tr>
......
......@@ -7,32 +7,32 @@
<div id="content-main" class="recommendations">
<h1>Programmhinweise</h1>
<div id="shows">
{% for item in recommendation_list %}
<div class="show recommendation bf-{{ item.show.broadcastformat.slug }}">
{% for recommendation in recommendation_list %}
<div class="show recommendation bf-{{ recommendation.show.broadcastformat.slug }}">
<div class="show-abbrevs">
{% for ab in item.show.showinformation.all %}
<span title="{{ab.information}}" class="abbrev si-{{ ab.abbrev }}"><span>{{ ab.abbrev }}</span></span>
{% for si in recommendation.show.showinformation.all %}
<span title="{{ si.information }}" class="abbrev si-{{ si.abbrev }}"><span>{{ si.abbrev }}</span></span>
{% endfor %}
{% for ab in item.show.showtopic.all %}
<span title="{{ab.topic}}" class="abbrev st-{{ ab.abbrev }}"><span>{{ ab.abbrev }}</span></span>
{% for st in recommendation.show.showtopic.all %}
<span title="{{ st.topic }}" class="abbrev st-{{ st.abbrev }}"><span>{{ st.abbrev }}</span></span>
{% endfor %}
{% for ab in item.show.musicfocus.all %}
<span title="{{ab.focus}}" class="abbrev mf-{{ ab.abbrev }}"><span>{{ ab.abbrev }}</span></span>
{% for mf in recommendation.show.musicfocus.all %}
<span title="{{ mf.focus }}" class="abbrev mf-{{ mf.abbrev }}"><span>{{ mf.abbrev }}</span></span>
{% endfor %}
</div>
<div class="show-detail">
<h4>
<a href="{% url show-detail item.show.slug %}">{{ item.show.name }}</a><br />
vom {{ item.start|date:"d.m. H:i" }}-{{ item.end|date:"H:i" }}
<a href="{% url "show-detail" recommendation.show.slug %}">{{ recommendation.show.name }}</a><br />
vom {{ recommendation.start|date:"d.m. H:i" }}-{{ recommendation.end|date:"H:i" }}
</h4>
{% if item.note %}
{% if recommendation.note %}
<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>
<div class="note-content">{{ item.note.content|safe}}</div>
<div class="note-content">{{ recommendation.note.content|safe}}</div>
{% else %}
<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>
{% endif %}
</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