Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#11043 closed (fixed)

InlineForeignKeyField should respect to_field

Reported by: apollo13 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:


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

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by apollo13

Changed 7 years ago by apollo13


comment:1 Changed 7 years ago by thejaswi_puthraya

  • Component changed from Uncategorized to Database layer (models, ORM)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 7 years ago by Alex

  • Component changed from Database layer (models, ORM) to Forms
  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 7 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(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 deleted

Milestone 1.1 deleted

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