title: combine modelformset and inlineformset in django views
body: <p>i have two models</p>
  
  <pre><code>   class A(models.Model):
          name = models.CharField(50)
          type = models.CharField(50)
  
     class B(models.Model):
          field1 = ForeignKeyField(A)
          value = IntegerField()
  </code></pre>
  
  <p>I'd like to display a number of forms via a ModelFormSet (from model A) where each one of the forms displays in turn InlineFormSets (from model B) for all objects connected to the object. </p>
  
  <p>How can i combine both modelformsets (model A) and inline formsets (mdoel B) on save method in django views?</p>