1👍
✅
You dont need this part:
new_user = get_profile_model()
you get new_user from previous command, just save it and remove self from the new_user.save()
new_user.save(self) -> new_user.save()
def save(self):
"""
Override the save method to save the first and last name to the user
field.
"""
# First save the parent form and get the user.
new_user = super(SignupFormExtra, self).save()
new_user.first_name = self.cleaned_data['first_name']
new_user.last_name = self.cleaned_data['last_name']
new_user.cellPhone = self.cleaned_data['cellPhone']
new_user.save()
# Userena expects to get the new user from this form, so return the new
# user.
return new_user
Source:stackexchange.com