All but one of Scotland's councils have agreed to a Scottish Government deal not to cut teacher numbers in return for cash.

A total of 31 out of 32 local authorities have signed up to the funding deal, which meant councils will only receive their share of £51 million of government cash if they meet conditions on teacher numbers.

Talks are ongoing with one remaining local authority on the issue, Education Secretary Angela Constance said.

She added: "Talks with local authorities have been positive and productive and we are pleased that we are working together to provide the right number and highest quality of teachers in our schools."

But local government body Cosla said councils had been left with "Hobson's Choice" and the SNP administration had "bulldozed through their scheme".

Cosla president David O'Neill said: "With a gun to your head, it is difficult to make the decisions you might otherwise want to make. Councils once again were left in the invidious position of having to accept this deal or face the most unpalatable of punitive measures."