(cls, phone_number, domain=None)
return True
Opts a phone number out from receiving SMS.
        Does not bother changing the state for numbers marked as excluded from the opt in workflow.
Opts a phone number out from receiving SMS.
        Does not bother changing the state for numbers marked as excluded from the opt in workflow.
Opts a phone number out from receiving SMS . Does not bother changing the state for numbers marked as excluded from the opt in workflow .
def opt_out_sms(cls, phone_number, domain=None):
        """
        Opts a phone number out from receiving SMS.
        Does not bother changing the state for numbers marked as excluded from the opt in workflow.
        """
        phone_obj = cls.get_or_create(phone_number)[0]
        if not phone_obj.can_opt_in:
            return False

        phone_obj.domain = domain
        phone_obj.send_sms = False
        phone_obj.last_sms_opt_out_timestamp = datetime.utcnow()
        phone_obj.save()
        return True
def opt_out_sms ( cls , phone_number , domain = None ) : phone_obj = cls . get_or_create ( phone_number ) [ 0 ] if not phone_obj . can_opt_in : return False phone_obj . domain = domain phone_obj . send_sms = False phone_obj . last_sms_opt_out_timestamp = datetime . utcnow ( ) phone_obj . save ( ) return True