Opened 8 years ago

Closed 8 years ago

Last modified 5 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: UI/UX:

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 8 years ago.
inlineforeignkeys.2.diff (4.2 KB) - added by Florian Apolloner 8 years ago.
inlineforeignkeys2.diff

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by Florian Apolloner

Attachment: inlineforeignkeys.diff added

Changed 8 years ago by Florian Apolloner

Attachment: inlineforeignkeys.2.diff added

inlineforeignkeys2.diff

comment:1 Changed 8 years ago by Thejaswi Puthraya

Component: UncategorizedDatabase layer (models, ORM)

comment:2 Changed 8 years ago by Alex Gaynor

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

comment:3 Changed 8 years ago by Russell Keith-Magee

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 Changed 5 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

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