#12917: Buggy save_new() of BaseInlineFormSet when getting pk_value of related
object
---------------------------+------------------------------------------------
Reporter: anonymous | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: 1.1
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
{{{
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.
--
Ticket URL: <http://code.djangoproject.com/ticket/12917>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.