def set_swimlane(self, value):
if self.multiselect:<EOL><INDENT>value = value or []<EOL>children = []<EOL>for child in value:<EOL><INDENT>children.append(self.cast_to_python(child))<EOL><DEDENT>return self._set(children)<EOL><DEDENT>return super(MultiSelectField, self).set_swimlane(value)<EOL>
Cast all multi-select elements to correct internal type like single-select mode