title: How to add custom User model to Registrationform in Django?
body: <p>I have done a lot of research these days but just dont get how it is done. 
  So I have the basic User model and Profile model as shown below:</p>
  
  <pre><code>class Profile(models.Model):
  user = models.OneToOneField(User, null=True)
  address= models.CharField(max_length=100)
  posts = models.IntegerField(max_length=100)
  
  
  
  @receiver(post_save, sender=User)
  def create_user_profile(sender, instance, created, **kwargs):
  if created:
      Profile.objects.create(user=instance)
  
  @receiver(post_save, sender=User)
  def save_user_profile(sender, instance, **kwargs):
  instance.profile.save()
  </code></pre>
  
  <p>my forms.py</p>
  
  <pre><code>class RegistrationForm(UserCreationForm):
  
  
  class Meta:
      model = User
      fields = {'username','email', 'password1', 'password2', 'first_name', 'last_name'}
  
  
  
  class UserProfileForm(forms.ModelForm):
  class Meta:
      model = Profile
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def register(request):
  if request.method == 'POST':
      form = RegistrationForm(request.POST)
  
  
      if form.is_valid():
          user = form.save(commit=False)
          username = form.cleaned_data['username']
  
          user.save()
          user = authenticate(username=username)
          return redirect('/home')
  else:
      form = RegistrationForm()
  
  args = {'form' : form}
  return render(request, 'home/reg_form.html', args)
  </code></pre>
  
  <p>So what's missing in my code to make it appear on the registration form?</p>
  
  <p>Thanks for your help in advance</p>