I’d like to display a number of forms via a ModelFormSet where each one of the forms displays in turn InlineFormSets for all objects connected to the object.
Now I’m not really sure how to provide the instances for each ModelFormSet. I thought about subclassing BaseModelFormSet but I have no clue on where to start and would like to know whether this is possible at all before I go through all the trouble.
Thanks in advance!
I found an article which focuses on the exact problem. It works fine!
http://yergler.net/blog/2009/09/27/nested-formsets-with-django/
For the sake of completeness I copied the code fragments: