Both measures would prohibit school districts from discriminating against students based on religious viewpoints and would require every district in the state to adopt a written policy to prohibit such discrimination .