When a complaint has been filed it shall forthwith be presented to the judge of the circuit court in which it is filed, who shall note thereon the day of presentation and also the day and place where he will hear the same, which shall be not later than ten days thereafter. The candidate who appears upon the face of the returns to have been elected, or to whom a certificate of nomination has been issued, shall be named as defendant.
SDCL 12-22-30