Opened 3 years ago

Closed 3 years ago

#17387 closed New feature (worksforme)

Make 'This field is required' error more specific.

Reported by: rich@… Owned by: nobody
Component: Uncategorized Version: 1.3
Severity: Normal Keywords: error
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This are very common errors, but it doesn't create a good user or developer experience to have this message.

I suggest that instead, the message read "This field, {{fieldname}}, is required" be the default, or that there be a way to style the error message in the template language or in the model field.

Attachments (1)

Screen Shot 2011-12-12 at 3.19.35 PM.png (141.0 KB) - added by rich@… 3 years ago.
screenshot

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by rich@…

screenshot

comment:1 Changed 3 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 3 years ago by ptone

  • Resolution set to worksforme
  • Status changed from new to closed

Did you see this section of the docs regarding looping over form fields and displaying field specific errors?

https://docs.djangoproject.com/en/1.3/topics/forms/#customizing-the-form-template

and the section that follows that:

https://docs.djangoproject.com/en/1.3/topics/forms/#looping-over-the-form-s-fields

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