def create(self, data):
    'Handle user and profile creation.'
    data.pop('password_confirmation')
    user = User.objects.create_user(**data, is_verified=False, is_client=True)
    profile = Profile.objects.create(user=user)
    send_confirmation_email.delay(user_pk=user.pk)
    return user
Handle user and profile creation.
def create(self, data):
    
    data.pop('password_confirmation')
    user = User.objects.create_user(**data, is_verified=False, is_client=True)
    profile = Profile.objects.create(user=user)
    send_confirmation_email.delay(user_pk=user.pk)
    return user