def access_model_field(app_name, model_name, field_name, request=None, instance=None):
    """
    Return true to allow access of a given field_name to model app_name.model_name given
    a specific object of said model.
    """
    # in django version 1.2 a new attribute is on all models: _state of type ModelState
    # that field shouldn't be accessible
    return not ('delete', '_state',) in field_name
dataset/ETHPy150Open klipstein/dojango/dojango/util/perms.py/access_model_field/swapped operands of `in`