Don't just call this "object", say what it is.

This commit is contained in:
Bradley M. Kuhn 2015-03-04 12:23:22 -08:00
parent 00995bff4d
commit 888d6c3589

View file

@ -15,14 +15,14 @@
{% ifnotequal news.number 1 %}<p>(page {{ news.number }} of {{ news.paginator.num_pages }})</p>{% endifnotequal %}
{% for object in news %}
{% for news_item in news %}
<div class="shaded">
<p class="date">{{ object.pub_date|date:"F j, Y" }}</p>
<h3><a href="{{ object.get_absolute_url }}">{{ object.headline|safe }}</a></h3>
{% if object.is_recent %}
{% if object.subhead %}<h4>{{ object.subhead|safe }}</h4>{% endif %}
{{ object.summary|safe }}
{% if object.body %}<p><span class="continued"><a href="{{ object.get_absolute_url }}">Read More...</a></span></p>{% endif %}
<p class="date">{{ news_item.pub_date|date:"F j, Y" }}</p>
<h3><a href="{{ news_item.get_absolute_url }}">{{ news_item.headline|safe }}</a></h3>
{% if news_item.is_recent %}
{% if news_item.subhead %}<h4>{{ news_item.subhead|safe }}</h4>{% endif %}
{{ news_item.summary|safe }}
{% if news_item.body %}<p><span class="continued"><a href="{{ news_item.get_absolute_url }}">Read More...</a></span></p>{% endif %}
{% endif %}
</div>
{% endfor %}