Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#7983 closed (fixed)

ModelAdmin's `fields` option is undocumented

Reported by: julien 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 7 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 7 years ago by julien

  • Component changed from Uncategorized to Documentation
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 7 years ago by mrts

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

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

comment:3 Changed 7 years ago by kmtracey

  • Resolution invalid deleted
  • Status changed from closed to reopened

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 7 years ago by julien

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 7 years ago by julien

comment:5 Changed 7 years ago by jamesturk

  • Has patch set

comment:6 Changed 7 years ago by brosner

  • Resolution set to fixed
  • Status changed from reopened to closed

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

comment:7 Changed 4 years ago by jacob

  • milestone 1.0 deleted

Milestone 1.0 deleted

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