File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1105,8 +1105,18 @@ def all_meeting_sessions_for_group(self):
11051105 from ietf .meeting .utils import add_event_info_to_session_qs
11061106 if self .group .features .has_meetings :
11071107 if not hasattr (self , "_all_meeting_sessions_for_group_cache" ):
1108- sessions = [s for s in add_event_info_to_session_qs (self .meeting .session_set .filter (group = self .group ,type = self .type )) if s .official_timeslotassignment ()]
1109- self ._all_meeting_sessions_for_group_cache = sorted (sessions , key = lambda x : x .official_timeslotassignment ().timeslot .time )
1108+ sessions = [s for s in add_event_info_to_session_qs (self .meeting .session_set .filter (group = self .group )) if s .official_timeslotassignment ()]
1109+ for s in sessions :
1110+ s .ota = s .official_timeslotassignment ()
1111+ # Align this sort with SchedTimeSessAssignment default sort order since many views base their order on that
1112+ self ._all_meeting_sessions_for_group_cache = sorted (
1113+ sessions , key = lambda x : (
1114+ x .ota .timeslot .time ,
1115+ x .ota .timeslot .type .slug ,
1116+ x .ota .session .group .parent .name if x .ota .session .group .parent else None ,
1117+ x .ota .session .name
1118+ )
1119+ )
11101120 return self ._all_meeting_sessions_for_group_cache
11111121 else :
11121122 return [self ]
You can’t perform that action at this time.
0 commit comments