Thursday, May 31, 2012

Re: Admin Inline empty extra - how to access parent form model ID?



On Wednesday, April 28, 2010 2:55:26 PM UTC+2, Daniel Roseman wrote:

The inline formset itself (rather than its forms) has an "instance"
attribute which refers to the instance of the parent form.

Sorry to bring back a two-years old post, but is there still a way to do this in django 1.4 ?
I'm exploring the BaseInlineFormset object but there's no "instance" attribute anymore

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/SHROXpngD-sJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment