From 7bfa14f0875e1013c7bac21b67b60a270ed5299e Mon Sep 17 00:00:00 2001 From: Hangzhi Yu <hangzhi@protonmail.com> Date: Wed, 16 Oct 2024 02:32:28 +0200 Subject: [PATCH] Fix lesson event graphene type --- aleksis/apps/chronos/schema/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aleksis/apps/chronos/schema/__init__.py b/aleksis/apps/chronos/schema/__init__.py index 6f983e9c..2cb57c62 100644 --- a/aleksis/apps/chronos/schema/__init__.py +++ b/aleksis/apps/chronos/schema/__init__.py @@ -84,7 +84,7 @@ class LessonEventType(DjangoObjectType): if not str(root.pk).startswith("DUMMY") and hasattr(root, "groups"): return root.groups elif root.amends: - root.amends.groups + return root.amends.groups return [] @staticmethod @@ -92,7 +92,7 @@ class LessonEventType(DjangoObjectType): if not str(root.pk).startswith("DUMMY") and hasattr(root, "rooms"): return root.rooms elif root.amends: - root.amends.rooms + return root.amends.rooms return [] -- GitLab