Buggy save_new() of BaseInlineFormSet when getting pk_value of related object
|Reported by:||anonymous||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
pk_value = getattr(self.instance, self.fk.rel.field_name)
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.