Cal. Penal Code § 25520
Section 25400 does not apply to, or affect, the transportation of a firearm by a participant when going directly to, or coming directly from, a recognized safety or hunter safety class, or a recognized sporting event involving that firearm.