def value_from_object(self, instance, name):
        return getattr(instance, name)
Get the attribute, for FutureModelForm.
dataset/ETHPy150Open yourlabs/django-autocomplete-light/src/dal_contenttypes/fields.py/GenericModelMixin.value_from_object