newforms.Form.clean should have access to field errors
I'm implementing a newforms.Form subclass in which I do form-wide validation in clean(). I'm missing the ability to check for errors detected during field validation though, I can only determine this by looking for missing entries in clean_data. Can you please expose field validation errors to the Form.clean hook?
Attachments
(1)
- 3718.diff
(2.0 KB
) - added by Gary Wilson <gary.wilson@…> 18 years ago.
- Save to
self.__errors
sooner in full_clean()
so that the clean methods can access errors.
Download all attachments as:
.zip
Change History
(7)
Triage Stage: |
Unreviewed → Design decision needed
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
And currently, looking at
clean_data
doesn't work in all cases since fields that pass validation but not theclean_XXX
method still have their data inclean_data
(the patch attached to #3896 would fix this problem though).