when scheduling, only show slots from sessions with slots of equal or longer duration than the event

This commit is contained in:
Thomas Steen Rasmussen 2020-08-04 22:40:17 +02:00
parent 1327c21e74
commit de9eca07b2

View file

@ -930,7 +930,8 @@ class EventScheduleView(CampViewMixin, ContentTeamPermissionMixin, FormView):
slotindex = 0
# loop over sessions, get free slots
for session in self.camp.event_sessions.filter(
event_type=self.event.event_type
event_type=self.event.event_type,
event_duration_minutes__gte=self.event.duration_minutes,
):
for slot in session.get_available_slots():
# loop over speakers to see if they are all available