FormPreview should pass the form to done()
|Reported by:||Owned by:||nobody|
|Severity:||Normal||Keywords:||formpreview done cleaned_data form|
|Cc:||sciyoshi@…, bthomas@…||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Currently, FormPreview's done() gets passed the request and the form's cleaned_data, but it'd be much nicer if done() got passed the actual form instead. This way, for ModelForms, one could just do form.save(). You can still get the cleaned_data with form.cleaned_data. Attaching a patch that breaks backwards compatibility, but I think its nicer in the long run...