Forms _get_validations_exclusions is still not backwards compatible
|Reported by:||Chris Beaven||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
In my user registration form, I have a field named
password, but the modelform's Meta has
fields = ('first_name', 'last_name', 'email').
Submitting the form causes a "This field cannot be blank." validation error for the password field.
The current logic doesn't actually refer to those fields, but to the fields dictionary (which will also contain any user-generated fields).
Change History (21)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|
comment:8 Changed 7 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Ready for checkin → Accepted|