Government Code § 51242
ARTICLE 3. Contracts
No city or county may contract with respect to any land pursuant to this chapter unless the land:
(a) Is devoted to agricultural use.
(b) Is located within an area designated by a city or county as an agricultural preserve.