Skip to content

Commit 3470968

Browse files
Merge pull request #222 from acsany/django-diary
Fix inconsistent variable name in for-loop
2 parents edf753f + 5f7a82e commit 3470968

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

django-diary/source_code_final/entries/templates/entries/entry_list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h2 class="mark">{% now "Y-m-d H:i" %}</em></h2>
66
<a href="{% url 'entry-create' %}"><button>Add new entry</button></a>
77
</article>
8-
{% for entry in object_list %}
8+
{% for entry in entry_list %}
99
<article>
1010
<h2 class="{{ entry.date_created|date:'l' }}">
1111
{{ entry.date_created|date:'Y-m-d H:i' }}
@@ -17,4 +17,4 @@ <h3>
1717
</h3>
1818
</article>
1919
{% endfor %}
20-
{% endblock %}
20+
{% endblock %}

django-diary/source_code_step_4/entries/templates/entries/entry_list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "entries/base.html" %}
22

33
{% block content %}
4-
{% for entry in object_list %}
4+
{% for entry in entry_list %}
55
<article>
66
<h2 class="{{ entry.date_created|date:'l' }}">
77
{{ entry.date_created|date:'Y-m-d H:i' }}
@@ -13,4 +13,4 @@ <h3>
1313
</h3>
1414
</article>
1515
{% endfor %}
16-
{% endblock %}
16+
{% endblock %}

django-diary/source_code_step_5/entries/templates/entries/entry_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "entries/base.html" %}
22

33
{% block content %}
4-
{% for entry in object_list %}
4+
{% for entry in entry_list %}
55
<article>
66
<h2 class="{{ entry.date_created|date:'l' }}">
77
{{ entry.date_created|date:'Y-m-d H:i' }}

django-diary/source_code_step_6/entries/templates/entries/entry_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h2 class="mark">{% now "Y-m-d H:i" %}</em></h2>
66
<a href="{% url 'entry-create' %}"><button>Add new entry</button></a>
77
</article>
8-
{% for entry in object_list %}
8+
{% for entry in entry_list %}
99
<article>
1010
<h2 class="{{ entry.date_created|date:'l' }}">
1111
{{ entry.date_created|date:'Y-m-d H:i' }}

0 commit comments

Comments
 (0)