(self, commit=True)
return user
Save.
Save.
Save .
def save(self, commit=True):
        """Save."""
        # Save the provided password in hashed format
        user = super(UserCreationForm, self).save(commit=False)
        user.set_password(self.cleaned_data["password1"])
        if commit:
            user.save()
        return user
def save ( self , commit = True ) : # Save the provided password in hashed format user = super ( UserCreationForm , self ) . save ( commit = False ) user . set_password ( self . cleaned_data [ "password1" ] ) if commit : user . save ( ) return user