(self)
return '{}{}'.format(
            SQLProduct.objects.values_list('code', flat=True).get(product_id=self.product_id).lower(),
            quant
        )
A short string representation of this to be used in sms correspondence
A short string representation of this to be used in sms correspondence
A short string representation of this to be used in sms correspondence
def fragment(self):
        """
        A short string representation of this to be used in sms correspondence
        """
        if self.quantity is not None:
            quant = self.quantity
        else:
            quant = ''
        return '{}{}'.format(
            SQLProduct.objects.values_list('code', flat=True).get(product_id=self.product_id).lower(),
            quant
        )
def fragment ( self ) : if self . quantity is not None : quant = self . quantity else : quant = '' return '{}{}' . format ( SQLProduct . objects . values_list ( 'code' , flat = True ) . get ( product_id = self . product_id ) . lower ( ) , quant )