Despite not being allowed to wear the school’s branded shorts, the students at Longhill High School, in Brighton, East Sussex were allowed to wear skirts, as they are part of the agreed school uniform.

Wesley Allen, whose son Kodi was part of the protesting group, said the school’s decision to punish the boys for wearing shorts was ‘madness’.

“The shorts he had on have the school logo on them and I think should be allowed to wear them on hot days,” he said.

“The school say they have to wear school uniform and the shorts are.

“I think it’s madness. The boys have done this to prove a point and I think it’s brilliant.

“I don’t think Kodi will wear the skirt all summer but I do think he likes the attention.”

On Tuesday19 July around 20 boys were punished for wearing their gym shorts rather than “regulation uniform”.

Some of the students were sent home and others were kept in isolation and excluded the following day.

Longhill’s headteacher Kate Williams said: “Students have access to water in order to keep themselves hydrated.

“We have made reasonable steps to ensure that classrooms are as comfortable as possible.

“I have high standards regarding uniform and in the warm weather, these high standards have been challenged by approximately 2% of parents/students.”

In a statement, Williams added: “Four male students at Longhill High School chose to wear a skirt to school. Students can choose to wear any part of the agreed school uniform.”