From 8337b07c26843d21e3038beea75bb1bec8127ba0 Mon Sep 17 00:00:00 2001 From: Michael Bauer <michael-bauer@posteo.de> Date: Fri, 6 Dec 2024 19:43:13 +0100 Subject: [PATCH] Guard against extra_mark is None --- .../alsijil/templates/alsijil/partials/person_overview.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aleksis/apps/alsijil/templates/alsijil/partials/person_overview.html b/aleksis/apps/alsijil/templates/alsijil/partials/person_overview.html index a212a097..3418b1c4 100644 --- a/aleksis/apps/alsijil/templates/alsijil/partials/person_overview.html +++ b/aleksis/apps/alsijil/templates/alsijil/partials/person_overview.html @@ -129,7 +129,9 @@ {{ note.documentation.subject.short_name }} </td> <td>{{ note.documentation.get_teachers_short_names|join:', ' }}</td> - <td>{{ note.extra_mark.short_name }}</td> + {% if note.extra_mark %} + <td>{{ note.extra_mark.short_name }}</td> + {% endif %} <td>{{ note.note }}</td> </tr> {% endfor %} -- GitLab