

@classmethod
def _get_related_objects(cls):
    fields = cls._meta._get_fields(forward=False, reverse=True, include_parents=True, include_hidden=False)
    return list((obj for obj in cls if (not isinstance(obj.field, ManyToManyField))))

dataset/ETHPy150Open divio/django-cms/cms/models/pluginmodel.py CMSPlugin._get_related_objects/VarMisuse@46/55 `fields`->`cls`