'Return whether ``field`` should trigger an onchange event in the
presence of ``other_fields``.'

def _has_onchange(self, field, other_fields):

    return ((field.name in self._onchange_methods) or any(((dep in other_fields) for (dep, _) in self._field_triggers[field])))
