def siblings(self): from indico.modules.events.timetable.util import get_nested_entries, get_top_level_entries tzinfo = self.event.tzinfo day = self.start_dt.astimezone(tzinfo).date() siblings = (get_nested_entries(self.event)[self.parent_id] if self.parent_id else get_top_level_entries(self.event)) return [x for x in siblings if x.start_dt.astimezone(tzinfo).date() == day and x.id != self.id]
def siblings(self): from indico.modules.events.timetable.util import get_top_level_entries, get_nested_entries tzinfo = self.event_new.tzinfo day = self.start_dt.astimezone(tzinfo).date() siblings = (get_nested_entries(self.event_new)[self.parent_id] if self.parent_id else get_top_level_entries(self.event_new)) return [x for x in siblings if x.start_dt.astimezone(tzinfo).date() == day and x.id != self.id]