A person under 18 years of age shall not be detained in a secure facility, as defined in Section 206, solely upon the ground that he or she is in willful disobedience or interference with any lawful order of the juvenile court, if the basis of an order of contempt is the failure to comply with a court order pursuant to subdivision (b) of Section 601. Upon a finding of contempt of court, the court may issue any other lawful order, as necessary, to ensure the minor's school attendance.
Ca. Welf. and Inst. Code § 213.3