def password(self, password): """Set password. """ self.password_hash = generate_password_hash(password)