Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#7983 closed (fixed)

ModelAdmin's `fields` option is undocumented

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

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 16 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by Julien Phalip, 16 years ago

Component: UncategorizedDocumentation

comment:2 by mrts, 16 years ago

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 by Karen Tracey, 16 years ago

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 by Julien Phalip, 16 years ago

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.

by Julien Phalip, 16 years ago

Attachment: 7983.fields_doc.diff added

comment:5 by James Turk, 16 years ago

Has patch: set

comment:6 by Brian Rosner, 16 years ago

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 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

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