generic views should call Manipulator.prepare()
|Reported by:||mir@…||Owned by:||jacob|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Within the FormField framework, Manipulators and FormFields have
a method prepare(). Its docstring says:
def prepare(self, new_data): """ Makes any necessary preparations to new_data, in place, before data has been validated. """
It would also be a nice place for this, but ... in reality, it never gets called.
If generic views called it before get_validation_errors (as the
docstring of prepare suggests), it would be a good place to add
logic for readonly fields (to replace them from original_object)
Furthermore, CheckboxSelectMultipleField overwrites prepare,
although it never gets called. I haven't used it, so can't say if
Or am I missing something?