Performance optimizations
Compare changes
Files
5+ 34
− 14
@@ -38,7 +36,10 @@ def is_lesson_participant(user: User, obj: LessonPeriod) -> bool:
@@ -51,7 +52,11 @@ def is_lesson_parent_group_owner(user: User, obj: LessonPeriod) -> bool:
@@ -63,7 +68,7 @@ def is_group_owner(user: User, obj: Union[Group, Person]) -> bool:
@@ -102,13 +107,18 @@ def has_person_group_object_perm(perm: str):
@@ -135,14 +145,19 @@ def has_lesson_group_object_perm(perm: str):
@@ -156,14 +171,19 @@ def has_personal_note_group_perm(perm: str):