The referendum provisions of chapter 11-2 shall apply to such zoning ordinances, provided however, that notwithstanding the provisions of § 11-2-22, if a referendum petition is filed with the county auditor, the question of adoption or rejection of the zoning ordinance shall be considered at a special election to be held for that purpose within sixty days after the filing of a petition; except that when such petition is filed within three months prior to the next primary or general election, whichever occurs first, such ordinance shall be submitted at such primary or general election if there is time to give notice thereof.
SDCL 11-6-13.2