Refine meeting time proxy to skip session time slots with no session attached. Fixes #785.
- Legacy-Id: 4034
This commit is contained in:
parent
52a94ef54a
commit
2d640721a5
|
@ -186,7 +186,7 @@ class MeetingTimeProxy(TimeSlot):
|
|||
return "[%s] |%s| %s" % (self.meeting.number, self.time.strftime('%A'), self.time_desc)
|
||||
def sessions(self):
|
||||
if not hasattr(self, "sessions_cache"):
|
||||
self.sessions_cache = WgMeetingSessionProxy.objects.filter(meeting=self.meeting, time=self.time, type__in=("session", "plenary", "other"))
|
||||
self.sessions_cache = WgMeetingSessionProxy.objects.filter(meeting=self.meeting, time=self.time, type__in=("session", "plenary", "other")).exclude(type="session", session=None)
|
||||
|
||||
return self.sessions_cache
|
||||
def sessions_by_area(self):
|
||||
|
|
Loading…
Reference in a new issue