modelcluster/models.py
def get_all_child_m2m_relations(model):
    """
    Return a list of ParentalManyToManyFields on the given model,
    including ones attached to ancestors of the model
    """
    return [
        field for field in model._meta.get_fields()
        if isinstance(field, ParentalManyToManyField)
    ]
def get_all_child_m2m_relations(model):
    return [
        field for field in model._meta.get_fields()
        if isinstance(field, ParentalManyToManyField)
    ]
def get_all_child_m2m_relations ( model ) : return [ field for field in model . _meta . get_fields ( ) if isinstance ( field , ParentalManyToManyField ) ]
Return a list of ParentalManyToManyFields on the given model,
    including ones attached to ancestors of the model
Return a list of ParentalManyToManyFields on the given model including ones attached to ancestors of the model