@receiver(post_save, sender=User)
def create_profile_callback(sender, instance, created=False, **kwargs):
 if created:
  for auto in AutoGroup.objects.all():
   if re.match(auto.match, instance.email):
    instance.groups.add(auto.group)
  Token.objects.create(user=instance)
  Profile.objects.get_or_create(user=instance)

@ receiver ( post_save , sender = User ) def create_profile_callback ( sender , instance , created = False , ** kwargs ) : if created : for auto in AutoGroup . objects . all ( ) : if re . match ( auto . match , instance . email ) : instance . groups . add ( auto . group ) Token . objects . create ( user = instance ) Profile . objects . get_or_create ( user = instance )
automatically adds user to users group .