def validate(self, value):
if value is None:<EOL><INDENT>if self.required:<EOL><INDENT>raise ValidationError('<STR_LIT>'.format(self.column_name or self.db_field))<EOL><DEDENT><DEDENT>return value<EOL>
Returns a cleaned and validated value. Raises a ValidationError
if there's a problem