How to put an InlineFormSet into a ModelFormSet in Django?

Posted by Jannis on Stack Overflow See other posts from Stack Overflow or by Jannis
Published on 2009-12-05T15:28:38Z Indexed on 2010/04/12 11:53 UTC
Read the original article Hit count: 302

Hi,

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!

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models