def set_python(self, value):
if self.multiselect:<EOL><INDENT>value = value or []<EOL>elements = []<EOL>for element in value:<EOL><INDENT>self.validate_value(element)<EOL>elements.append(element)<EOL><DEDENT>value = elements<EOL><DEDENT>else:<EOL><INDENT>self.validate_value(value)<EOL><DEDENT>self._set(value)<EOL>
Override to remove key from raw data when empty to work with server 2.16+ validation