Updated StreamField blocks API (markdown)

master
Matt Westcott 2015-05-08 12:27:54 +01:00
rodzic c337e6d391
commit ba7430f190
1 zmienionych plików z 1 dodań i 1 usunięć

@ -157,7 +157,7 @@ then this can be passed to the Javascript at this point too:
### clean(self, value)
Validates 'value' and returns a cleaned version of it, or throw a ValidationError if validation fails. This ValidationError will ultimately be passed back to `render_form` when the form is re-rendered, so
Validates 'value' and returns a cleaned version of it, or throw a ValidationError if validation fails. This ValidationError will ultimately be passed back to `render_form` when the form is re-rendered, so the 'params' attribute of the ValidationError can be used to pass additional information required for re-rendering the form.
The default implementation of `clean` simply returns 'value' unchanged.