From 50363114c91c3db935bc29cba12cfd0816fa2201 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Sun, 21 Mar 2021 20:36:47 +0100 Subject: [PATCH] Use only get_teachers in full register printout get_teachers will automatically select the correct teachers without any need for further action --- aleksis/apps/alsijil/templates/alsijil/print/full_register.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aleksis/apps/alsijil/templates/alsijil/print/full_register.html b/aleksis/apps/alsijil/templates/alsijil/print/full_register.html index 3434853ae..1f8b6132f 100644 --- a/aleksis/apps/alsijil/templates/alsijil/print/full_register.html +++ b/aleksis/apps/alsijil/templates/alsijil/print/full_register.html @@ -473,7 +473,7 @@ </td> <td class="lesson-te"> {% if documentations.0.topic %} - {{ substitution.teachers.first.short_name|default:register_object.get_teachers.first.short_name }} + {{ register_object.get_teachers.first.short_name }} {% endif %} </td> </tr> -- GitLab