title: How to save form wizard with OneToOne Field
body: <p>Django 1.6
  I have 2 models: </p>
  
  <ol>
  <li>User standard model</li>
  <li>Profile</li>
  </ol>
  
  <p>code:</p>
  
  <pre><code>class Profile(models.Model):
     class Meta:
         db_table = 'profile'
     user = models.OneToOneField(User)
     first_name = models.CharField(max_length=32)
     last_name = models.CharField(max_length=32)
     email = models.EmailField(max_length=32)
     bdate = models.DateField()
     phone = models.CharField(max_length=10)
  </code></pre>
  
  <p>I register user with form wizard. At first user write username and password. Next he write profile fields. How can I save this information into models.
  My view:</p>
  
  <pre><code>class UsrCreateProfile(SessionWizardView):
    template_name = 'user_registration.html'
    def done(self, form_list, **kwargs):
        form_list[0].save()
        get_user_name = form_list[0]
        get_user_profile = form_list[1]
        get_user_name = get_user_name['username']
        user_get = User.objects.get(username=get_user_name)
        form_list[1].save(pk=user_get)
        return HttpResponseRedirect('/')
  </code></pre>
  
  <p>forms.py:</p>
  
  <pre><code>class UserRegistrationForm(UserCreationForm):
  class Meta:
      model = User
      fields = ['username', 'password1']
  class UserRegistrationForm1(forms.ModelForm):
  class Meta:
      model = Profile
      fields = ['first_name', 'last_name', 'email', 'bdate', 'phone']
  </code></pre>
  
  <p>Template:</p>
  
  <pre><code>{% block reg_usr %}
  &lt;p&gt;Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}&lt;/p&gt;
  {% for field in form %}
      {{ field.error }}
  {% endfor %}
  &lt;form method="post"&gt;{% csrf_token %}
      &lt;table&gt;
          {{ wizard.management_form }}
          {% if wizard.form.forms %}
              {{ wizard.form.management_form %}
              {% for form in wizard.form.forms %}
                  {{ form }}
              {% endfor %}
          {% else %}
              {{ wizard.form }}
          {% endif %}
          &lt;/table&gt;
          {% if wizard.steps.prev %}
          &lt;button name="wizard_goto_step" type="submit" value="{{ wizard.steps.first }}"&gt;First step&lt;/button&gt;
          &lt;button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}"&gt;Prev step&lt;/button&gt;
          {% endif %}
      &lt;input type="submit" value="Next"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>{% endblock %}</p>