diff --git a/aleksis/apps/chronos/templates/chronos/plan.html b/aleksis/apps/chronos/templates/chronos/plan.html index 7d25724d3b1f36036cd344ebb8e4d052029e0862..b79727c5f9be0d2a16a3efc2b775ce7208612279 100644 --- a/aleksis/apps/chronos/templates/chronos/plan.html +++ b/aleksis/apps/chronos/templates/chronos/plan.html @@ -40,14 +40,13 @@ </h4> {# Show class teacher and deputy class teacher #} - {% if type == 2 and el.teachers %} + {% if type == "group" and el.owners.all %} <h5>Klassenlehrkräfte: - {% for teacher in el.teachers %} - + {% for teacher in el.owners.all %} <span data-position="bottom" class="tooltipped" data-tooltip="{{ teacher }}"> - <a href="{% url "timetable" "teacher" teacher.id %}"> - {{ teacher.shortcode }}</a></span>{% if not forloop.last %},{% endif %} + <a href="{% url "timetable" "teacher" teacher.pk %}"> + {{ teacher.short_name }}</a></span>{% if not forloop.last %},{% endif %} {% endfor %} </h5> {% endif %}