Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#691 closed defect (duplicate)

Model allowed me to 'hide' a required field, which produced unuseable error messages.

Reported by: lakin.wecker@… Owned by: adrian
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I had a data model which had a required field 'text'. When I was ordering the fields using the following syntax:

admin = meta.Admin(

# Add this to order the fields and even group them!
fields = (

(None, {'fields': ('title', 'published_date')} ),
("Categories", {'fields': ('categories',)} ),

)

)

I forgot to put in the 'text' field. Which meant that when I was adding a new item, it would complain that I should fix the 'error' below, but there was no error listed below, because the text field was never shown. The validate command should catch this maybe? But at the very least, if error messages aren't shown during the display of the form, they should be shown in a final list at the end. Or something.

Change History (2)

comment:1 Changed 10 years ago by anonymous

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

comment:2 Changed 10 years ago by lakin.wecker@…

sorry, I accidentally added this twice.

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