def _build_rooms(self, data):
        created_rooms = []
        rooms = sorted(set([x[self.ROOM_KEY] for x in data]))
        for i, room in enumerate(rooms):
            room, created = Room.objects.get_or_create(
                schedule=self.schedule, name=room, order=i
            )
            if created:
                created_rooms.append(room)
        return created_rooms
Get or Create Rooms based on schedule type and set of Tracks
dataset/ETHPy150Open pinax/symposion/symposion/schedule/forms.py/ScheduleSectionForm._build_rooms