Regardless of what type of discipline is handed out, each case needs to be judged on own merit but the punisment needs to be equal and proportionate to the offense. There are perhaps a few mitigating circumstances but generally it has to be fair.
So if a child forgets homework or fails to do homework they should be punished the circumstances that mitigate that could be the death of a family member, for example in whichc ase they can be given more time. Staying in to do homework on the school computers, when there isn't a working computer at home is counter productive, make the school systems more available to those in need, once systems reach end of life, install a free software operating system and make these available to the disadvantaged kids.
Indeed, which is why i also suggested if kids don't do homework we look at why and try and help, make sure there are homework / study clubs in schools for example. There is also restorative justice.
@zleap Or maybe don't treat schools like a pipeline to, or already part of, the prison-industrial complex. I doubt many of these cases actually required punishment. Seems too often there's a lazy excuse to exercise power, not doing what's needed to create better community and support for students.