Burwood Girls High School had arranged for students to watch documentary Gayby Baby on Friday morning, but the NSW Government has directed the Department of Education to ensure that the film is shown after school hours.
The viewing of the film directed by former student Maya Newell had been organised as part of Wear It Purple Day, an annual event promoting understanding of young LGBTI Australians.
NSW Education Minister Adrian Piccoli told 2GB Radio on Wednesday that "schools are not places for political issues to be aired".
"During school hours we expect them to be doing maths and English and curriculum matters," he said.
"This movie is not part of the curriculum and that's why I've made that direction."
Earlier, a spokeswoman for the Department of Education said students had been given the option of not attending the film, but noted the support of the school’s parenting organisation.
“The day and the advanced screening are supported by the Burwood Girls High School Parents and Citizens Association,” she said.