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.)
Note:
See TracTickets
for help on using tickets.
There are also:
empty_value_display,autocomplete_fields,sortable_byall of which are documented in ModelAdminshow_full_result_countis listed in BaseModelAdmin, but I'm unconvinced it's used for inlinesget_*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.