diff --git a/taskapp/templates/taskapp/tasklist.html b/taskapp/templates/taskapp/tasklist.html index 860b025..f84b0cb 100644 --- a/taskapp/templates/taskapp/tasklist.html +++ b/taskapp/templates/taskapp/tasklist.html @@ -45,8 +45,13 @@ {{ task.get_mode_display }} {{ task.descr }} - {{ task.author.username }} + + {% if task.author %} + {{ task.author.username }} + {% else %} + {% trans 'Author does not exist' %} + {% endif %} + {{ task.time_of_create|date:'d E H:i' }}