Skip to content
Snippets Groups Projects
Commit 3d330d3a authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Fix get_objects of LessonEvent and complete related_to_person of LessonEvent manager

parent ccbc6ee0
No related branches found
No related tags found
1 merge request!335Resolve "Fix get_objects method of LessonEvent"
Pipeline #175070 failed
......@@ -1589,6 +1589,9 @@ class LessonEvent(CalendarEvent):
return objs.for_room(obj_id)
elif type_ == "COURSE":
return objs.for_course(obj_id)
if "own" in params:
return objs
if request:
return objs.for_person(request.user.person)
return objs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment