No appointive officer and no employee of the city shall continue in such employment upon qualifying as a candidate for nomination or election to any public office.