def get_chains(self):
    'Return chains from models.'
    for m in self.get_models():
        (yield from m)
Return chains from models.
def get_chains(self):
    
    for m in self.get_models():
        (yield from m)