From a7727a689b1fbe207c664bd57ebe743fb836cb93 Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Mon, 7 Sep 2020 15:18:08 +0200
Subject: [PATCH] Fix typo

---
 aleksis/apps/alsijil/model_extensions.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aleksis/apps/alsijil/model_extensions.py b/aleksis/apps/alsijil/model_extensions.py
index d31a4ddc3..0fbfd9575 100644
--- a/aleksis/apps/alsijil/model_extensions.py
+++ b/aleksis/apps/alsijil/model_extensions.py
@@ -49,8 +49,8 @@ def mark_absent(
     # Create and update all personal notes for the discovered lesson periods
     for lesson_period in lesson_periods:
         sub = lesson_period.get_substitution()
-        if sub and sub.is_cancelled:
-                continue
+        if sub and sub.cancelled:
+            continue
 
         with reversion.create_revision():
             personal_note, created = PersonalNote.objects.update_or_create(
-- 
GitLab