Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#10963 closed (duplicate)

InlineAdminForm clobbers "content_type_id"

Reported by: Travis Cline Owned by: nobody
Component: contrib.admin Version: dev
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)

0001-changed-attribute-name-holding-an-inline-instance-s.patch (2.7 KB ) - added by Travis Cline 16 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Alex Gaynor, 16 years ago

Resolution: duplicate
Status: newclosed

Dupe of #9362

comment:2 by Travis Cline, 16 years ago

Ha. Thanks Alex. that was quick.

comment:3 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

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