Opened 17 years ago

Closed 16 years ago

#6809 closed (fixed)

[newforms-admin] non_field_errors are not displayed in change_form.html

Reported by: peschler Owned by: nobody
Component: contrib.admin Version: newforms-admin
Severity: Keywords: nfa-blocker non_field_errors form admin
Cc: framos@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Error messages that don't belong to a field (=form.non_field_errors) are not displayed at the top of the form in the admin change view of a model.

E.g. error messages issued by a custom Form's clean() method are not displayed to the user.

Attached is a simple patch to the change_form.html which fixes the problem and displays all non-field error messages at the top of the form.

Attachments (1)

change_form-non_field_errors.diff (662 bytes ) - added by peschler 17 years ago.
Patch for displaying non_field_errors.

Download all attachments as: .zip

Change History (5)

by peschler, 17 years ago

Patch for displaying non_field_errors.

comment:1 by peschler, 17 years ago

Summary: non_field_errors are not displayed in change_form.html[newforms-admin] non_field_errors are not displayed in change_form.html

comment:2 by Brian Rosner, 17 years ago

Keywords: nfa-blocker added
Triage Stage: UnreviewedAccepted

comment:3 by Fidel Ramos, 17 years ago

Cc: framos@… added

comment:4 by Brian Rosner, 16 years ago

Resolution: fixed
Status: newclosed

(In [7607]) newforms-admin: Fixed #6809 -- non_field_errors are now properly displayed. Thanks peschler.

Note: See TracTickets for help on using tickets.
Back to Top