Opened 4 hours ago

Last modified 2 hours ago

#36925 new Cleanup/optimization

InlineModelAdmin docs do not mention view_on_site as a shared feature with ModelAdmin

Reported by: James Aylett Owned by:
Component: Documentation Version: 6.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The capability was added to resolve #8261, but while it was documented for ModelAdmin it wasn't added to the list of shared features for InlineModelAdmin.

(This should be easy enough to resolve, although I haven't checked whether there are other shared features that aren't currently listed, which would be ideal to do when resolving. I'll try to find time to check and get a PR together.)

Change History (1)

comment:1 by James Aylett, 2 hours ago

There are also:

  • empty_value_display, autocomplete_fields, sortable_by all of which are documented in ModelAdmin
  • show_full_result_count is listed in BaseModelAdmin, but I'm unconvinced it's used for inlines
    • various get_* methods (which are also documented but effectively duplicate attributes and so are probably best left off)

And the sort order for the shared features doesn't make sense; it's neither consistent with that in the ModelAdmin docs above, nor alphabetical.

I have a draft patch, but would appreciate thoughts on what the sort order for that list (around docs/contrib/admin/index.rst:2278) should be.

Version 0, edited 2 hours ago by James Aylett (next)
Note: See TracTickets for help on using tickets.
Back to Top