A Derby secondary school has achieved better-than-average attendance after taking the time to listen to its pupils.