The mayor and city council shall appoint department heads for indefinite terms and shall fix the department heads' compensation; provided, however, no department head shall be appointed by less than the affirmative vote of three members of the city council or by the mayor and two members of the city council. Department heads shall be appointed solely on the basis of executive and administrative qualifications.