def get_source_value(self, obj, source, **kwargs):
        """
        Retrieves the value from ``obj`` associated with some ``source`` description.  Should return
        a list whose length is determined by the number of sources consulted.  In the default case,
        this is always just 1, but compound columns that declare their components with nested
        ``Column`` instances will have sources of their own and need to return a value per nested
        source.
        """
        if isinstance(obj, Model):
            value = reduce(get_attribute_value, [obj] + source.split('__'))
        elif isinstance(obj, dict):  # ValuesQuerySet item
            value = obj[source]
        else:
            raise ValueError("Unknown object type %r" % (repr(obj),))
        return [value]
dataset/ETHPy150Open pivotal-energy-solutions/django-datatable-view/datatableview/columns.py/Column.get_source_value/original