From 8281f18d3719ddb7133d56aa3d513350ad708dc0 Mon Sep 17 00:00:00 2001
From: Michael Bauer <michael-bauer@posteo.de>
Date: Tue, 30 Apr 2024 13:39:04 +0200
Subject: [PATCH] Return lesson events for participant

---
 aleksis/apps/chronos/models.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/aleksis/apps/chronos/models.py b/aleksis/apps/chronos/models.py
index c83c6db0..9ef26048 100644
--- a/aleksis/apps/chronos/models.py
+++ b/aleksis/apps/chronos/models.py
@@ -1555,6 +1555,8 @@ class LessonEvent(CalendarEvent):
             if type_ and obj_id:
                 if type_ == "TEACHER":
                     return objs.for_teacher(obj_id)
+                elif type_ == "PARTICIPANT":
+                    return objs.for_participant(obj_id)
                 elif type_ == "GROUP":
                     return objs.for_group(obj_id)
                 elif type_ == "ROOM":
-- 
GitLab