modelcluster/models.py
def get_all_child_relations(model):
    """
    Return a list of RelatedObject records for child relations of the given model,
    including ones attached to ancestors of the model
    """
    return [
        field for field in model._meta.get_fields()
        if isinstance(field.remote_field, ParentalKey)
    ]
def get_all_child_relations(model):
    return [
        field for field in model._meta.get_fields()
        if isinstance(field.remote_field, ParentalKey)
    ]
def get_all_child_relations ( model ) : return [ field for field in model . _meta . get_fields ( ) if isinstance ( field . remote_field , ParentalKey ) ]
Return a list of RelatedObject records for child relations of the given model,
    including ones attached to ancestors of the model
Return a list of RelatedObject records for child relations of the given model including ones attached to ancestors of the model