Code

Opened 5 years ago

Closed 5 years ago

Last modified 3 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:

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

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by apollo13

Changed 5 years ago by apollo13

inlineforeignkeys2.diff

comment:1 Changed 5 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 5 years ago by Alex

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

comment:3 Changed 5 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 3 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.