Replace locals() with context dicts

This commit is contained in:
Scot Hacker 2018-03-14 23:54:58 -07:00
parent 35cfd2eb39
commit 0daf9336c0
5 changed files with 80 additions and 31 deletions

View file

@ -8,7 +8,7 @@
<p>{{ item_count }} items in {{ list_count }} lists</p>
{% regroup list_list by group as section_list %}
{% regroup lists by group as section_list %}
{% for group in section_list %}
<h3>{{ group.grouper }}</h3>

View file

@ -22,8 +22,12 @@
</a><br/>
<strong>Assigned to:</strong>
{% if task.assigned_to %}{{ task.assigned_to.get_full_name }}
{% else %}Anyone{% endif %}<br/>
{% if task.assigned_to %}
{{ task.assigned_to.get_full_name }}
{% else %}
Anyone
{% endif %}
<br/>
<strong>Created by:</strong>
{{ task.created_by.first_name }}
@ -105,7 +109,7 @@
</strong>
</p>
{{ comment.body|safe|urlize|linebreaks }}
{% endfor %}
{% endfor %}
{% else %}
<h3>No comments (yet).</h3>
{% endif %}