Browse Source

FIXBUG: если у зажачи небыло автора, то всё вываливалось в 502

devel
http 9 years ago
parent
commit
67b388228f
  1. 8
      taskapp/templates/taskapp/tasklist_all.html

8
taskapp/templates/taskapp/tasklist_all.html

@ -58,8 +58,12 @@
<td>{{ task.get_mode_display }}</td>
<td>{{ task.descr }}</td>
<td><a href="{% url 'acc_app:other_profile' task.author.pk %}"
title="{{ task.author.get_full_name }}">{{ task.author.username }}</a></td>
<td>{% if task.author %}
<a href="{% url 'acc_app:other_profile' task.author.pk %}" title="{{ task.author.get_full_name }}">{{ task.author.username }}</a>
{% else %}
{% trans 'Not assigned' %}
{% endif %}
</td>
<td>{{ task.get_state_display }}</td>
<td>{{ task.time_of_create|date:'d N Y H:i:s' }}</td>

Loading…
Cancel
Save