def value_from_object(self, instance, name):
        return [x.object for x in getattr(instance, name).all()]
Returns:
dataset/ETHPy150Open yourlabs/django-autocomplete-light/src/dal_genericm2m/fields.py/GenericM2MFieldMixin.value_from_object--crossover with--dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/match.py/Participant.stats