Loans don't need to be in both names. Could be one name with the other providing a guarantee.
Relevant tax legislation is s8-1 itaa97. You also have to consider Part IVA ITAA36. There is also a tax ID for a spousal transfer.
Paul and I have clients who have done this.