Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#7983 closed (fixed)

ModelAdmin's `fields` option is undocumented

Reported by: Julien Phalip Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The Admin documentation is missing a description for the ModelAdmin's fields option. At the moment, only fieldsets is described.

[1] http://www.djangoproject.com/documentation/admin/#modeladmin-options

Attachments (1)

7983.fields_doc.diff (1.1 KB) - added by Julien Phalip 8 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 8 years ago by Julien Phalip

Component: UncategorizedDocumentation

comment:2 Changed 8 years ago by mrts

Resolution: invalid
Status: newclosed

Please check things carefully before you open tickets. Both fields and fieldsets are documented on the URL you gave.

comment:3 Changed 8 years ago by Karen Tracey

Resolution: invalid
Status: closedreopened

The fields element of the field_options dictionary within a fieldsets specification is documented.

Fields as a ModelAdmin option (an alternative to fieldsets) is not, near as I can tell. If it is there somewhere it ought to have a place in the contents list on the right, and it doesn't. If I'm missing the overall description that contents list item at least should be added, so it can be found. Searching on 'fields' on that page returns rather a lot of hits.

comment:4 Changed 8 years ago by Julien Phalip

Karen and mrts, I confirm that I meant fields as the alternative for fieldsets, not the dictionary key within the fieldsets option.

I attached a simple patch which hopefully is clear enough.

Changed 8 years ago by Julien Phalip

Attachment: 7983.fields_doc.diff added

comment:5 Changed 8 years ago by James Turk

Has patch: set

comment:6 Changed 8 years ago by Brian Rosner

Resolution: fixed
Status: reopenedclosed

(In [8175]) Fixed #7983 -- Added fields to the ModelAdmin section in the admin documentation. Thanks julien for the report and patch.

comment:7 Changed 5 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

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