title: How to add extra fields to django registration form?
body: <p>I have a registration form which generates in view. Now I need to add some fields from other model. How should I change view to add fields from another model?</p>
  
  <p>Here is my view code:</p>
  
  <pre><code>def register(request):
      """ User registration """
      if auth.get_user(request).username:
          return redirect('/')
  
      context = {}
      context.update(csrf(request))
      context['form'] = UserCreationForm()
      if request.POST:
          newuser_form = UserCreationForm(request.POST)
          if newuser_form.is_valid():
              newuser_form.save()
              newuser = auth.authenticate(username=newuser_form.cleaned_data['username'],
                                      password=newuser_form.cleaned_data['password2'])
          auth.login(request, newuser)
          return redirect('/')
          else:
              context['form'] = newuser_form
  
      return render(request, 'user_auth/user_auth_register.html', context)
  </code></pre>