#10963 closed (duplicate)
InlineAdminForm clobbers "content_type_id"
Reported by: | Travis Cline | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | master |
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
To properly build a view on site link InlineAdminForm's init stores the ContentType id on the instance for lookup in the template(s). This name clobbers the common case with GenericForeignKeys. Setting that attribute means later lookups in ReverseSingleRelatedObjectDescriptor.get pick up this value.
I haven't isolated this into a regression test and am attaching a naive patch just making the name less likely to collide.
Attachments (1)
Change History (4)
Changed 12 years ago by
Attachment: | 0001-changed-attribute-name-holding-an-inline-instance-s.patch added |
---|
comment:1 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Dupe of #9362