Reduce complexity of view_list to bring tox complexity down to 10

This commit is contained in:
Scot Hacker 2016-08-02 01:32:29 -07:00
parent 2264c51e77
commit 1ff499a003
4 changed files with 65 additions and 57 deletions

View file

@ -146,7 +146,7 @@
<td>{{ task.completed_date|date:"m/d/Y" }}</td>
<td style="text-align:center;">{% if task.note %}&asymp;{% endif %} </td>
<td style="text-align:center;">{% if task.comment_set.all.count != 0 %}{{ task.comment_set.all.count }}{% endif %}
<td><input type="checkbox" name="del_completed_task" value="{{ task.id }}" id="del_completed_task_{{ task.id }}"> </td>
<td><input type="checkbox" name="del_tasks" value="{{ task.id }}" id="del_task_{{ task.id }}"> </td>
</tr>
{% endfor %}