SYDNEY, Australia — Sex between Australia’s government ministers and their subordinates is now prohibited, a ban that Prime Minister Malcolm Turnbull announced on Thursday after a political scandal involving the deputy prime minister and a former staff member who is now pregnant.
In his first news conference since the scandal, known as #barnababy, began more than a week ago, Mr. Turnbull said that Barnaby Joyce, the deputy prime minister, had made “a shocking error of judgment” in having an affair with a woman who had worked for him.
“In doing so, he has set off a world of woe” for the women involved, Mr. Turnbull said, including Mr. Joyce’s wife and daughters.
Mr. Turnbull said that government ministers, whether married or single, must lead by example and not be romantically involved with staff members.
“Ministers must recognize that while they are entitled to privacy in personal matters, they occupy positions of great responsibility and public trust,” he said in announcing an overhaul of ministerial conduct rules. “The public have high expectations of them in terms of their personal conduct and decorum.”
The prime minister’s statement reflects a turbulent week in Parliament in which the culture of Australian politics has been called into question. The prime minister stopped short of asking Mr. Joyce to resign but said he was going on leave.
Mr. Joyce will also no longer serve as acting prime minister during Mr. Turnbull’s White House visit next week, a decision that critics said suggested the prime minister had lost confidence in him. The finance minister, Mathias Cormann, will step in instead.
Mr. Turnbull had appeared to resist the idea of a formal ban when it was suggested last week by Cathy McGowan, an independent politician. But on Thursday he said that the five-year-old code of ministerial conduct did not adequately reflect modern workplace values.
“We must recognize that whatever may have been acceptable or to which a blind eye was turned in the past, today, in 2018, it is not acceptable for a minister to have a sexual relationship with somebody who works for them,” Mr. Turnbull said. “It is a very bad workplace practice.”
Ms. McGowan said on Thursday that although she welcomed the prime minister’s announcement, the government should consider a code of conduct for all those who work in Parliament.
Mr. Joyce, 50, on Tuesday acknowledged his relationship with Vikki Campion, his former media adviser. Though he has spent much of the past week offering remorse to his family, he has denied ministerial misconduct and refused to resign.
Mr. Turnbull said it was up to Mr. Joyce whether to step down. If he does, Mr. Turnbull’s coalition government will lose its one-seat parliamentary majority.
The Australian tabloid newspaper The Daily Telegraph reported the affair last week alongside a photograph of a pregnant Ms. Campion, fueling a fierce debate about privacy, sex and the news media.
Sharri Markson, the national political editor at the newspaper, said she had been surprised by the initial pushback from other news outlets on whether the story was in the public interest.
The debate has since grown to include questions about gender and abuse of power.
“The Australian media in particular has protected politicians from this sort of exposure for many years,” Ms. Markson said.