def hash_password(self):
    '\n        Generate the secure hash for the password.\n\n        :return:\n        '
    if self.password:
        self.password = bcrypt.generate_password_hash(self.password).decode('utf-8')
Generate the secure hash for the password.

:return:
def hash_password(self):
    '\n        Generate the secure hash for the password.\n\n        :return:\n        '
    if self.password:
        self.password = bcrypt.generate_password_hash(self.password).decode('utf-8')