A candidate for whom a nomination paper has been filed as a partisan candidate at a primary election, and who is defeated for his or her party nomination at the primary election, is ineligible for nomination as an independent candidate.
Ca. Elec. Code § 8301