def set_python(self, value):
if not isinstance(value, (list, type(None))):<EOL><INDENT>raise ValidationError(<EOL>self.record,<EOL>"<STR_LIT>".format(<EOL>self.name,<EOL>value.__class__<EOL>)<EOL>)<EOL><DEDENT>value = value or []<EOL>self.cursor._validate_list(value)<EOL>return super(ListField, self).set_python(value)<EOL>
Validate using cursor for consistency between direct set of values vs modification of cursor values