#33142: Form clean method called after validation field clean method fails
--------------------------------+--------------------------------------
Reporter: David Babalola | Owner: nobody
Type: Bug | Status: closed
Component: Forms | Version: 3.2
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by Tim Graham):
* status: new => closed
* resolution: => invalid
Comment:
As far as I can tell, you've described behavior that's documented earlier
on the page you linked to: "These methods are run in the order given
above, one field at a time. That is, for each field in the form (in the
order they are declared in the form definition), the `Field.clean()`
method (or its override) is run, then `clean_<fieldname>()`. Finally, once
those two methods are run for every field, the `Form.clean()` method, or
its override, is executed whether or not the previous methods have raised
errors."
--
Ticket URL: <https://code.djangoproject.com/ticket/33142#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.6b9d38775a24d5df4160af48654a01fa%40djangoproject.com.