def value_from_object(self, obj):
        return getattr(obj, self.attname).all()
Return the value of this field in the given model instance.
dataset/ETHPy150Open django/django/django/db/models/fields/related.py/ManyToManyField.value_from_object