title: Save user data in another table once a user is created in django admin
body: <p>I am a beginner in django. I am using django 1.10 with <code>allauth</code> app which takes care of frontend registration, sending user confirmation email,validation, login with email etc.</p>
  
  <p>The allauth app inserts three rows in three tables when a user is created.</p>
  
  <pre><code>1. auth_user
  2. account_emailaddress
  3. account_emailconfirmation
  </code></pre>
  
  <p>When adding a user from admin it creates a row in <code>auth_user</code> and <code>general_userprofile</code> table. I would like to insert a row in <code>account_emailaddress</code> table when admin creates a user.</p>
  
  <p>Fields in account_emailaddress are--</p>
  
  <pre><code>id
  email
  verified
  primary
  user_id
  </code></pre>
  
  <p>The models.py looks like --</p>
  
  <pre><code>class EmailAddress(models.Model):
      #user = models.ForeignKey(User)
      user = models.OneToOneField(User, unique=True, related_name ='address')
      email = models.EmailField()
      verified = models.BooleanField(verbose_name=_('verified'), default=True)
      primary = models.BooleanField(verbose_name=_('primary'), default=True)
  
      class Meta:
          db_table = 'account_emailaddress'
  
  
  class UserProfile(models.Model, HashedPk):
      user = models.OneToOneField(User, unique=True, related_name ='profile')
      job_title = models.CharField(max_length=128, blank=True, null=False, default="")
      website = models.URLField(max_length=255, blank=True, null=True)
      organisation = models.CharField(max_length=50, blank=True, null=True, default="")
      phone_number = PhoneNumberField( blank=True, null=True)
  
  
  @receiver(post_save, sender=User)
  def create_profile(sender, instance, created, **kwargs):
      if created:
          UserProfile.objects.create(user=instance)
          EmailAddress.objects.create(user=instance
  </code></pre>
  
  <p>)</p>
  
  <p>Forms.py look like this</p>
  
  <pre><code>from django import forms
  from django.contrib.auth.models import User
  from django.utils.translation import ugettext as _
  from crispy_forms.helper import FormHelper
  from crispy_forms.layout import Layout, Div, Field
  from ajax_select.fields import AutoCompleteSelectField, AutoCompleteField
  from phonenumber_field.formfields  import PhoneNumberField
  from . import models
  from captcha.fields import ReCaptchaField
  
  
  class SignUpForm(forms.Form):
      first_name = forms.CharField(max_length=30)
      last_name = forms.CharField(max_length=30)
      phone_number = PhoneNumberField(label=_("Phone (Please state your country code eg. +44)"))
      organisation = forms.CharField(max_length=50)
      email = forms.EmailField()
      password1 = forms.CharField(max_length=20)
      password2 = forms.CharField(max_length=20)
      captcha = ReCaptchaField(attrs={'theme' : 'clean'})
  
  
      def signup(self, request, user):
          user.first_name = self.cleaned_data['first_name']
          user.last_name = self.cleaned_data['last_name']
          """
          profile, created = models.UserProfile.objects.get_or_create(user=user)
          profile.phone_number = self.cleaned_data['phone_number']
          profile.organisation = self.cleaned_data['organisation']
          profile.save()
          user.save()
          """
          up = user.profile
          up.phone_number = self.cleaned_data['phone_number']
          up.organisation = self.cleaned_data['organisation']
          user.save()
          up.save()
  </code></pre>
  
  <p>How can I get the user id and email which is created under class <code>EmailAddress</code> and save it to the table.</p>