def pre_save_post_validation(cls, sender, document, **kwargs): document.api_token = Utility.encrypt_message(document.api_token)
def pre_save_post_validation(cls, sender, document, **kwargs): document.smtp_url = Utility.encrypt_message(document.smtp_url) document.smtp_password = Utility.encrypt_message(document.smtp_password) if not Utility.check_empty_string(document.smtp_userid): document.smtp_userid = Utility.encrypt_message(document.smtp_userid) document.from_email = Utility.encrypt_message(document.from_email)