Skip to content
Snippets Groups Projects
Commit 0984dfd3 authored by permcu's avatar permcu
Browse files

Use get_teachers_short_names-method in coursebook-template

parent d0ec5a9b
No related branches found
No related tags found
1 merge request!422Resolve "Add export functionality to course book"
......@@ -98,9 +98,7 @@
<td>
{{ participation.documentation.subject.short_name }}
</td>
<!-- TODO: Should probably use short_names -->
<!-- or just short_name of first (like in coursebook) -->
<td>{{ participation.note.documentation.teachers.all|join:', ' }}</td>
<td>{{ participation.note.documentation.get_teachers_short_names|join:', ' }}</td>
<td>{{ participation.absence_reason.short_name }}</td>
<td>{{ participation.tardiness }}</td>
</tr>
......@@ -126,9 +124,7 @@
<td>
{{ note.documentation.subject.short_name }}
</td>
<!-- TODO: Should probably use short_names -->
<!-- or just short_name of first (like in coursebook) -->
<td>{{ note.documentation.teachers.all|join:', ' }}</td>
<td>{{ note.documentation.teachers.get_teachers_short_names|join:', ' }}</td>
<td>{{ note.extra_mark.short_name }}</td>
<td>{{ note.note }}</td>
</tr>
......
......@@ -84,7 +84,7 @@
</td>
<td class="lesson-te">
{% if documentation.topic %}
{{ doc.teachers.first.short_name }}
{{ doc.teachers.get_teachers_short_names|join:', ' }}
{% endif %}
</td>
</tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment