Opened 6 years ago

Closed 6 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: UI/UX:


  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 6 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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