def __init__(self, body, from_phone=None, to=None, flash=False, connection=None):
        """
        Initialize a single SMS message (which can be sent to multiple recipients)
        """
        if to:
            #assert not isinstance(to, basetring), '"to" argument must be a list or tuple'
            self.to = list(to)
        else:
            self.to = []

        self.from_phone = from_phone or getattr(settings, 'SENDSMS_DEFAULT_FROM_PHONE', '')
        self.body = body
        self.flash = flash
        self.connection = connection
def __init__ ( self , body , from_phone = None , to = None , flash = False , connection = None ) : if to : self . to = list ( to ) else : self . to = [ ] self . from_phone = from_phone or getattr ( settings , 'SENDSMS_DEFAULT_FROM_PHONE' , '' ) self . body = body self . flash = flash self . connection = connection
Initialize a single SMS message (which can be sent to multiple recipients)