The morphology-density relation in z ~ 1