Cal. Penal Code § 32000
(a)
(b) This section shall not apply to any of the following:
(6) Subject to the limitations set forth in subdivision (c), the sale or purchase of a handgun for use as a service weapon, if the handgun is sold to, or purchased by, any of the following entities for use by, or sold to or purchased by, sworn members of these entities who have satisfactorily completed the POST basic course or, before January 1, 2021, have satisfactorily completed the firearms portion of a training course prescribed by the Commission on Peace Officer Standards and Training (POST) pursuant to Section 832, and who, as a condition of carrying that handgun, complete a live-fire qualification prescribed by their employing entity at least once every six months:
(Q) A fire department or fire protection agency of a county, city, city and county, district, or the state for use by either of the following:
(7)
(A) Subject to the limitations set forth in subdivision (c), the sale or purchase of a handgun, if the handgun is sold to, or purchased by, any of the following entities for use as a service weapon by the sworn members of these entities who have satisfactorily completed the POST basic course or, before January 1, 2021, have satisfactorily completed the firearms portion of a training course prescribed by the POST pursuant to Section 832, and who, as a condition of carrying that handgun, complete a live-fire qualification prescribed by their employing entity at least once every six months:
(c)
(2)
(C) For purposes of this paragraph, the following definitions shall apply:
(e)