title: Creating one Django Form to save two models
body: <p>I have the regular Django <code>User</code> model and a <code>UserDetails</code> model (<code>OneToOneField</code> with <code>User</code>), which serves as an extension to the <code>User</code> model. (I tried Django 1.5's feature and it was a headache with strangely horrible documentation, so I stuck with the <code>OneToOneField</code> option)</p>
  
  <p>So, in my quest to build a custom registration page that will have a registration form comprised of the <code>User</code> fields and the <code>UserDetails</code> fields, I wondered if there was a way to generate the form automatically (with all of its validations) out of these two related models. I know this works for a form made of one model:</p>
  
  <pre><code>class Meta:
      model = MyModel
  </code></pre>
  
  <p>But is there anyway to get a similar functionality for a form comprised of two related models?</p>