diff --git a/todo/templates/todo/view_list.html b/todo/templates/todo/view_list.html index f0a2d28..46a08e3 100644 --- a/todo/templates/todo/view_list.html +++ b/todo/templates/todo/view_list.html @@ -90,11 +90,9 @@
In list: {{ task.list }}
- Assigned to: {{ task.assigned_to.first_name }} {{ task.assigned_to.last_name }}
+ Assigned to: {% if task.assigned_to %}{{ task.assigned_to.get_full_name }}{% else %}Anyone{% endif %}
Created by: {{ task.created_by.first_name }} {{ task.created_by.last_name }}
Due date: {{ task.due_date }}
Completed: {{ form.completed }}
@@ -42,7 +41,6 @@
Title: | {{ form.title }} | @@ -100,6 +98,6 @@ {% endfor %} - {% endifequal %} + {% endif %} {% endblock %}