def _get_field(instance, field):
    
    value = getattr(instance, field)
    if hasattr(value, 'raw'):
        value = value.raw
    return value
This is here to support ``MarkupField``. It's a little ugly to
dataset/ETHPy150Open carljm/django-adminfiles/adminfiles/listeners.py/_get_field