title: Django - How to work with multiple ModelForm's in the same form?
body: <p>I've 4 models that I need to store data at once. For that I'm thinking using ModelForms.</p>
  
  <p>I've tested with 2 ModelForm's at the same time but it is not working. Here is the code.</p>
  
  <p>Model:</p>
  
  <pre><code>class Main(models.Model):
      section             = models.ForeignKey(Section)
      user                = models.ForeignKey(User)
      title               = models.CharField(max_length=250)
      date_inserted       = models.DateTimeField(auto_now_add=True)
      date_last_update    = models.DateTimeField(auto_now=True)
  
      def __unicode__(self):
      return self.title
  
      # To order in the admin by name of the section
      class Meta:
      ordering = ['date_inserted']
  
  
  class BicycleAd(models.Model):
      main                = models.ForeignKey(Main)
      bicycleadtype       = models.ForeignKey(BicycleAdType)
      bicycleaditemkind   = models.ForeignKey(BicycleAdItemKind) # MPTT Model
      bicycleadcondition  = models.ForeignKey(BicycleAdCondition)
      country             = models.ForeignKey(GeonamesCountry)       
      city                = models.ForeignKey(GeonamesLocal) 
      date_inserted       = models.DateTimeField(auto_now_add=True)
      date_last_update    = models.DateTimeField(auto_now=True)
  
      # To order in the admin by name of the section
      class Meta:
      ordering = ['date_inserted']   
  </code></pre>
  
  <p>Forms:</p>
  
  <pre><code>class MainForm(forms.ModelForm):
      class Meta:
      model = Main
      exclude = ('user', 'section')
  
  class BicycleAdForm(forms.ModelForm):
      class Meta:
      model = BicycleAd
      exclude = ('main', 'bicycleadtype', 'bicycleaditemkind', 'bicycleadcondition', 'city')
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>def submit_data_entry_view(request):
      form_main      = MainForm(request.POST)
      form_bicyclead = BicycleAdForm(request.POST)
  
      return render_to_response('app/submit_data_entry.html', {'form_main': form_main, 'form_bicyclead': form_bicyclead}, context_instance=RequestContext(request))
  </code></pre>
  
  <p>Template:</p>
  
  <pre><code>&lt;form method="post" action=""&gt;
      {{form_main}}
      {{form_bicyclead}}
  &lt;/form&gt;
  </code></pre>
  
  <p>At the end I only get the"form_bicyclead" outputed in the browser? How can I get the two forms at once?</p>
  
  <p>Best Regards,</p>