From 995f1ba8b9d4f343d40ed3a17b6345f70c2ff84b Mon Sep 17 00:00:00 2001
From: magicfelix <felix@felix-zauberer.de>
Date: Thu, 28 Jul 2022 18:37:46 +0200
Subject: [PATCH] Fix deleting topic, homework or groupNote

---
 aleksis/apps/alsijil/schema.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/aleksis/apps/alsijil/schema.py b/aleksis/apps/alsijil/schema.py
index e09159f5b..559169a5b 100644
--- a/aleksis/apps/alsijil/schema.py
+++ b/aleksis/apps/alsijil/schema.py
@@ -96,11 +96,11 @@ class LessonDocumentationMutation(graphene.Mutation):
             extra_lesson=extra_lesson
         )
 
-        if topic:
+        if topic is not None:
             lesson_documentation.topic = topic
-        if homework:
+        if homework is not None:
             lesson_documentation.homework = homework
-        if group_note:
+        if group_note is not None:
             lesson_documentation.group_note = group_note
 
         lesson_documentation.save()
-- 
GitLab