if pk.editable is true, or pk.auto_created is true or pk is an instance of AutoField class, or if pk.rel is true,
return ( ( not pk . editable ) or ( pk . auto_created or isinstance ( pk , AutoField ) ) or ( pk . rel and pk . rel . parent_link and pk_is_not_editable ( pk . rel . to . _meta . pk ) ) )