diff --git a/aleksis/apps/chronos/schema/__init__.py b/aleksis/apps/chronos/schema/__init__.py index 6f983e9ca2940ac6bc70aade4a3a03f319dfbe9a..2cb57c62d217c07a94496ad67fe118ff212fb610 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 []