def get_internal_type(field):
    """
    Wrapper for Django 1.8.16 compatibility. Handles fields
    without a .get_internal_type attribute, which don't need to
    return an internal field.
    """
    try:
        return field.get_internal_type()
    except AttributeError:
        return None