def register(self, request, **cleaned_data):
    new_user = RegistrationView.register(self, request, **cleaned_data)
    UserProfile(user=new_user).save()
    return new_user
def register(self, request, **cleaned_data):
    new_user = RegistrationView.register(self, request, **cleaned_data)
    UserProfile(user=new_user).save()
    return new_user