Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#11043 closed (fixed)

InlineForeignKeyField should respect to_field

Reported by: Florian Apolloner Owned by: nobody
Component: Forms Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi, while looking at #10243 I found out that InlineForeignKeyField isn't respecting to_field of the ForeignKey. Attached is a patch, which doesn't work until #10243 is fixed, but the bug in the forms is fixed now…

Attachments (2)

inlineforeignkeys.diff (4.2 KB ) - added by Florian Apolloner 16 years ago.
inlineforeignkeys.2.diff (4.2 KB ) - added by Florian Apolloner 16 years ago.
inlineforeignkeys2.diff

Download all attachments as: .zip

Change History (6)

by Florian Apolloner, 16 years ago

Attachment: inlineforeignkeys.diff added

by Florian Apolloner, 16 years ago

Attachment: inlineforeignkeys.2.diff added

inlineforeignkeys2.diff

comment:1 by Thejaswi Puthraya, 16 years ago

Component: UncategorizedDatabase layer (models, ORM)

comment:2 by Alex Gaynor, 16 years ago

Component: Database layer (models, ORM)Forms
Triage Stage: UnreviewedAccepted

comment:3 by Russell Keith-Magee, 16 years ago

Resolution: fixed
Status: newclosed

(In [10756]) Fixed #10243, #11043 -- Corrected handling of formsets over a ForeignKey that uses to_field, and by extension, fixed the admin for handling fields of that type. Thanks to apollo13 for the initial patch.

comment:4 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

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