if reg_form.is_valid():
nuevo_usuario = reg_form.save(commit=False)
pw_hash = bcrypt.hashpw(clave.encode(), bcrypt.gensalt()).decode()
nuevo_usuario.password = pw_hash
nuevo_usuario.save()
if reg_form.is_valid():
nuevo_usuario = reg_form.save(commit=False)
pw_hash = bcrypt.hashpw(clave.encode(), bcrypt.gensalt()).decode()
nuevo_usuario.password = pw_hash
nuevo_usuario.save()