show real name if possible

This commit is contained in:
Thomas Steen Rasmussen 2017-04-02 19:23:23 +02:00
parent d2a78dcf1c
commit 39afd3f01f
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ Team: {{ team.name }} | {{ block.super }}
<p>This team is under the <b>{{ team.area.name }} area</b>. The following users are responsible for the <b>{{ team.area.name }} area</b>:</p>
<ul>
{% for resp in team.area.responsible.all %}
<li>{{ resp.name|default:"Unnamed" }}</li>
<li>{{ resp.get_full_name|default:"Unnamed" }}</li>
{% endfor %}
</ul>
{% endblock %}

View file

@ -37,7 +37,7 @@ Teams | {{ block.super }}
</td>
<td>
{% for resp in team.area.responsible.all %}
{{ resp.name|default:"Unnamed" }}<br>
{{ resp.get_full_name|default:"Unnamed" }}<br>
{% endfor %}
</td>
{% if request.user.is_authenticated %}