def chain(self, bee):
        """

        :param bee:
        :return:
        """
        # static usage with list for many-to-one
        if isinstance(self, list):
            for other in self:
                other.chain(bee)
        else:
            self.chained_bees.append(bee)
        return bee
def chain ( self , bee ) : if isinstance ( self , list ) : for other in self : other . chain ( bee ) else : self . chained_bees . append ( bee ) return bee
:param bee:
        :return: