def get_swimlane(self):
if self.multiselect:<EOL><INDENT>value = self._get()<EOL>children = []<EOL>if value:<EOL><INDENT>for child in value:<EOL><INDENT>children.append(self.cast_to_swimlane(child))<EOL><DEDENT>return children<EOL><DEDENT>return None<EOL><DEDENT>return super(MultiSelectField, self).get_swimlane()<EOL>
Handle multi-select and single-select modes