Opened 2 months ago
Last modified 2 months ago
#36979 assigned Cleanup/optimization
GenericInlineModelAdmin doesn't respect ModelAdmin.get_exclude()
| Reported by: | Tim Graham | Owned by: | MANAS MADESHIYA |
|---|---|---|---|
| Component: | contrib.contenttypes | Version: | 6.0 |
| Severity: | Normal | Keywords: | |
| Cc: | MANAS MADESHIYA | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The ModelAdmin.get_exclude() hook was added in #24941, however, GenericInlineModelAdmin doesn't use it.
Change History (8)
comment:1 by , 2 months ago
| Triage Stage: | Unreviewed → Accepted |
|---|---|
| Type: | Bug → Cleanup/optimization |
comment:2 by , 2 months ago
| Cc: | added |
|---|---|
| Owner: | set to |
| Status: | new → assigned |
comment:4 by , 2 months ago
| Needs documentation: | set |
|---|---|
| Triage Stage: | Accepted → Ready for checkin |
The PR looks great, and I'll just recommend to add yourself to the contributors section, just for your own benefit. Someone else can check me on this, but I think this would warrant creating a documentation page for this, as the feature I don't think has one already, or at least it should be improved to now state that the function is called by django. Anyways, I'll mark it both for ready to checkin, and needs documentation for said fix.
comment:5 by , 2 months ago
| Needs documentation: | unset |
|---|---|
| Triage Stage: | Ready for checkin → Accepted |
If you're suggesting the patch needs documentation, that's inconsistent with marking it Ready for Checkin.
I'm going to second the advice I just mentioned in another ticket to ask you to slow down and read the triage workflow docs, and reduce the frequency of your participation until you demonstrate more understanding. Thanks.
comment:6 by , 2 months ago
| Has patch: | unset |
|---|---|
| Owner: | removed |
| Status: | assigned → new |
comment:7 by , 2 months ago
Hi @jacobtylerwalls ,
I apologize for the incomplete AI disclosure.
I used Claude (claude.ai) as an AI assistant
while working on this fix. I reviewed and
verified all code changes myself and ran
the full test suite locally (21 tests passing).
I would like to submit a new PR with proper
disclosure. May I do so?
Thank you for your patience.
comment:8 by , 2 months ago
| Has patch: | set |
|---|---|
| Owner: | set to |
| Status: | new → assigned |
Original PR reopened.
Going to move this triage to accepted, I would recommend someone who knows more about the admin model to go and fix it. I’m also going to change the status to clean up just because the feature is working just not using the efficient function. Good luck!