]> git.parisson.com Git - teleforma.git/commitdiff
fix no author
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 30 Jan 2015 13:08:07 +0000 (14:08 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 30 Jan 2015 13:08:07 +0000 (14:08 +0100)
teleforma/exam/templates/exam/inc/script_list.html

index 0ce9d1123e6bc8c22a3c56f8b2bc69c8435c57a8..622533c370a1798cf123a66e2d84ee3493264207 100644 (file)
@@ -27,8 +27,8 @@
      <td>{% if script.status != 2 %}<a href="{% url teleforma-exam-script-detail period.id script.id %}">{% endif %}{{ script.course.title }}{% if script.status != 2 %}</a>{% endif %}</td>
      <td>{% if script.status != 2 %}<a href="{% url teleforma-exam-script-detail period.id script.id %}">{% endif %}{{ script.session }}{% if script.status != 2 %}</a>{% endif %}</td>
      <td>{% if script.status != 2 %}<a href="{% url teleforma-exam-script-detail period.id script.id %}">{% endif %}{{ script.type }}{% if script.status != 2 %}</a>{% endif %}</td>
-     <td><a href="{% url teleforma-profile-detail script.author.username %}">{{ script.author.last_name }}</a></td>
-     <td><a href="{% url teleforma-profile-detail script.author.username %}">{{ script.author.first_name }}</a></td>
+     <td>{% if script.author.username %}<a href="{% url teleforma-profile-detail script.author.username %}">{{ script.author.last_name }}</a>{% endif %}</td>
+     <td>{% if script.author.username %}<a href="{% url teleforma-profile-detail script.author.username %}">{{ script.author.first_name }}</a>{% endif %}</td>
      <td>{{ script.date_added }}</td>
      <td>{% if script.date_marked %}{{ script.date_marked }}{% endif %}</td>
      <td>{% if script.corrector %}{{ script.corrector }}{% endif %}</td>