title: Django - combining forms for related models
body: <p>Is there a common method/best practice/any means for combining forms that span multiple related models?</p>
  
  <p>I want to create/edit model objects along with other, related model objects on the same page. Basically, being able to create/edit one model instance and another set of model instances related by a foreign key.</p>
  
  <p>Not a great explanation, I know.</p>
  
  <pre><code>class Person(models.Model):
      name = models.CharField(max_length=64, unique=True)
  
  class PhoneNumber(models.Model):
      person = models.ForeignKey(Person)
      description = models.CharField(max_length=64, blank=True, null=True) 
      number = models.CharField(max_length=32, blank=True, null=True)
  </code></pre>
  
  <p>I want to be able to create/edit a person, along with all their associated phone numbers using a single form/page.</p>
  
  <p>I've done this before using <a href="http://yergler.net/blog/2009/09/27/nested-formsets-with-django/" rel="noreferrer">this nested form</a> example, but it seems quite hackish. </p>