It comes after some pupils were sent home from Moffat Academy for wearing shorts in warm weather.