title: Django - creating parent and child simultaneously
body: <p>I am using Django 1.7 and have a form which contains a parent model as well as a one-to-many relationship to a child model.  For instance, I want users to be able to create a Meeting and add Members to that meeting at the same time.  I want to be able to use ajax to retrieve a list of active members and have the user select those within the Meeting form before saving, then save everything all at once.  Is there a way to set up the form with formsets or something without having to do a lot of javascript trickery?</p>
  
  <p>Keep in mind this will need to retain the selected members even if the form gets submitted with invalid data for the Meeting instance that's being created and has to be re-rendered.</p>
  
  <p>Example models (untested):</p>
  
  <pre><code>class Meeting(models.Model):
      subject = models.CharField(max_length=30)
      location = models.CharField(max_length=30)
      created = models.DateField()
  
  class MeetingMember(models.Model):
      user = models.ForeignKey(User)
      meeting = models.ForeignKey('Meeting')
  </code></pre>