From e7c8e6a49fa244e45ff1658643dd2920c60cd325 Mon Sep 17 00:00:00 2001 From: Dmitry Novikov Date: Wed, 16 Aug 2017 12:10:59 +0300 Subject: [PATCH] =?UTF-8?q?FIXBUG:=20=D0=92=D1=8B=D0=BB=D0=B5=D1=82=D0=B0?= =?UTF-8?q?=D0=BB=D0=BE=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=BD=D0=B5=D1=82=20?= =?UTF-8?q?=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- taskapp/templates/taskapp/tasklist.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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' }}