Validate the given value and return its "cleaned" value as an appropriate Python object. Raise ValidationError for any errors.
(self, value)
| 201 | raise ValidationError(errors) |
| 202 | |
| 203 | def clean(self, value): |
| 204 | """ |
| 205 | Validate the given value and return its "cleaned" value as an |
| 206 | appropriate Python object. Raise ValidationError for any errors. |
| 207 | """ |
| 208 | value = self.to_python(value) |
| 209 | self.validate(value) |
| 210 | self.run_validators(value) |
| 211 | return value |
| 212 | |
| 213 | def bound_data(self, data, initial): |
| 214 | """ |