Failure to include required fields in Admin class results in non-obvious error
|Reported by:||ddipaolo@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In contrib/admin/templates/admin/change_form.html , the "Please correct the error(s) below." message is displayed when form.error_dict is non-empty, but there are no errors actually displayed "below" if the fields that aren't validating are not included on the form because they aren't listed in the Admin class's fields attribute. As a result, the user is left looking for the aforementioned errors but won't find any. Either the message needs to be changed or some checking needs to be done to make sure that all required fields are included in the admin interface.