Merged in [13830] from rjsparks@nostrum.com:

Show all the sessions for area groups in the proceedings. Fixes #2265.  Should be patched into production.
 - Legacy-Id: 13831
Note: SVN reference [13830] has been migrated to Git commit 68d70aaeb2
This commit is contained in:
Henrik Levkowetz 2017-07-11 18:33:56 +00:00
commit 082528134b

View file

@ -907,7 +907,7 @@ class Session(models.Model):
return list(self.materials.filter(type='draft'))
def all_meeting_sessions_for_group(self):
if self.group.type_id in ['wg','rg']:
if self.group.type_id in ['wg','rg','ag']:
if not hasattr(self, "_all_meeting_sessions_for_group_cache"):
sessions = [s for s in self.meeting.session_set.filter(group=self.group,type=self.type) if s.official_timeslotassignment()]
self._all_meeting_sessions_for_group_cache = sorted(sessions, key = lambda x: x.official_timeslotassignment().timeslot.time)