def _find_references(model_name, references=None):
references = references or []<EOL>references.append(model_name)<EOL>ref = MODELS[model_name].get('<STR_LIT>')<EOL>if ref is not None:<EOL><INDENT>_find_references(ref, references)<EOL><DEDENT>parent_models = [m for m in references]<EOL>parent_models.reverse()<EOL>return parent_models<EOL>
Iterate over model references for `model_name`
and return a list of parent model specifications (including those of
`model_name`, ordered from parent to child).