From: yomguy Date: Tue, 2 Aug 2016 16:41:20 +0000 (+0200) Subject: fix no professor.user.username X-Git-Tag: 1.3-TC~3 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b77950e94e365adbbabbcd8f3b3d681ff997c18c;p=teleforma.git fix no professor.user.username --- diff --git a/teleforma/templates/teleforma/inc/conference_list.html b/teleforma/templates/teleforma/inc/conference_list.html index 753fcea1..3e02bce0 100644 --- a/teleforma/templates/teleforma/inc/conference_list.html +++ b/teleforma/templates/teleforma/inc/conference_list.html @@ -24,7 +24,7 @@
{% trans "Title" %}
{{ stream.conference.course.title }}
{% trans "Session" %}
{{ stream.conference.session }}
-
{% trans "Professor" %}
{{ stream.conference.professor }}
+
{% trans "Professor" %}
{% if stream.conference.professor.user.username %}{{ stream.conference.professor }}{% endif %}
{% trans "Begin" %}
{{ stream.conference.date_begin }}
@@ -48,4 +48,4 @@ {% endif %} -{% endwith %} \ No newline at end of file +{% endwith %}