Opened 9 years ago

Closed 9 years ago

#12917 closed (invalid)

Buggy save_new() of BaseInlineFormSet when getting pk_value of related object

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


  pk_value = getattr(self.instance,

The attribute actually belongs to the related object, not the object relating to, so this statement is sure to fail. I was wondering if anyone can come up with a solution to fix this.

Change History (1)

comment:1 Changed 9 years ago by Russell Keith-Magee

Resolution: invalid
Status: newclosed

The usage reads ok to me, and I'm fairly certain this line is tested. In the absence of a specific test case that is failing, I'm marking this report invalid.

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